PTST / O365-HomeAssistant

Office 365 integration for Home Assistant
MIT License
69 stars 13 forks source link

Enhancement: add service to update calendar #71

Closed gijbelsy closed 4 years ago

gijbelsy commented 4 years ago

Is it possible to add the service: 'update calendar data'. When calendar data is changed, I would like to have the possibility to call this service in HA to update the data. Also after a reboot of HA, it takes some time to update the calendars automatically.

PTST commented 4 years ago

Home Assistant has this build in natively, just call the homeassistant.update_entity service on the calendar entity you want to update

gijbelsy commented 4 years ago

Problem is that this isn't working properly. When HA reboots the calendar entity is empty (even there are events within the next 24Hrs). If I issue the update_entity service the data remains empty, until midnight has passed. Log shows no error's concerning this.