Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

upgrade stopped working 2.16 #63

Closed
ThisBytes5 opened this issue May 11, 2020 · 12 comments
Closed

upgrade stopped working 2.16 #63

ThisBytes5 opened this issue May 11, 2020 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@ThisBytes5
Copy link

ThisBytes5 commented May 11, 2020

After updating to 2.16 I get the following below.
I deleted the cache token, and the calendar yaml only to have the same error after re-configuring.
Rolling back to 2.15 fixes the issue and allows the component to work, but I'd like to be able to update.

Logger: homeassistant.components.calendar
Source: custom_components/o365/calendar.py:130
Integration: Calendar (documentation, issues)
First occurred: 8:40:17 AM (1 occurrences)
Last logged: 8:40:17 AM

o365: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 322, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/config/custom_components/o365/calendar.py", line 130, in async_update
events = list(await hass.async_add_executor_job(self.data.o365_get_events,
NameError: name 'hass' is not defined

@PTST
Copy link
Owner

PTST commented May 11, 2020

Can you please try the newly published v.2.1.7 beta? If you are using HACS to install you have to open the page for this integration and enable showing of beta versions

@PTST PTST self-assigned this May 11, 2020
@PTST PTST added the bug Something isn't working label May 11, 2020
@ThisBytes5
Copy link
Author

ThisBytes5 commented May 11, 2020

My sensors are there, so looks like it's working with the beta, thank you

@RogerSelwyn
Copy link
Contributor

This works for me, and apologies for the bug in my PR.

@unbreakmat
Copy link

had this problem also, removed the token, restarted hassio, now works buth my main agenda "Agenda" says error 400, al other calendars are created through entitys but not the Agenda?
What could i provide you to help fuxing this error?

@unbreakmat
Copy link

investigated the issue and also deltete this old file, 0365 get the agenda buth no entity is shown in hassio
image

@unbreakmat
Copy link

i looked somwhat further, made a new agenda in my outlook account, removed the known calendars and cache token, restart, authorisation, restart and the new calendar is found, still the first agenda 'agenda' is found through known calendars yaml buth gives an response error 400

@unbreakmat
Copy link

noticed now an error in the system
image

@RogerSelwyn
Copy link
Contributor

That should be fixed by the 2.1.7 beta from what I can see above.

@unbreakmat
Copy link

unbreakmat commented May 12, 2020

meanwhile my second calendar in row stopped working also (error smae is described)
image

2020-05-12 01:00:38 ERROR (MainThread) [homeassistant.components.calendar] o365: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 322, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/config/custom_components/o365/calendar.py", line 130, in async_update
events = list(await hass.async_add_executor_job(self.data.o365_get_events,
NameError: name 'hass' is not defined

please fix this ....

@PTST
Copy link
Owner

PTST commented May 12, 2020

I have promoted this fix to a public 2.1.7 release.

@unbreakmat as pointed out by @RogerSelwyn this should also fix your issue.

@PTST PTST closed this as completed May 12, 2020
@unbreakmat
Copy link

I have promoted this fix to a public 2.1.7 release.

@unbreakmat as pointed out by @RogerSelwyn this should also fix your issue.

upgraded and found no errors in it , calendars are working , i let you know if this changes
bu great work thanks!

@ThisBytes5
Copy link
Author

Ditto, been working great all day. Thanks again

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants