uvjim / linksys_velop

Home Assistant integration for the Linksys Velop
MIT License
50 stars 7 forks source link

Error logs advise: “ should use self.async_write_ha_state()” #424

Closed dredjohn21 closed 1 year ago

dredjohn21 commented 1 year ago

Hi

Noticed this in the logs. I’m guessing something changed with the HAOS code? Everything is working perfectly…

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:560 
First occurred: May 5, 2023 at 11:39:10 PM (3 occurrences) 
Last logged: May 6, 2023 at 2:16:20 PM

Entity device_tracker.phone (<class 'custom_components.linksys_velop.device_tracker.LinksysVelopMeshDeviceTracker'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please report it to the custom integration author.
Entity device_tracker.android (<class 'custom_components.linksys_velop.device_tracker.LinksysVelopMeshDeviceTracker'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please report it to the custom integration author.
Entity device_tracker.watch (<class 'custom_components.linksys_velop.device_tracker.LinksysVelopMeshDeviceTracker'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please report it to the custom integration author.
uvjim commented 1 year ago

Yup. Looks like something has changed. I didn't get a chance to run the beta this time.

Looks like it was introduced here.

It doesn't look like it causes an issue but I'll get it fixed.

Thanks for reporting.

uvjim commented 1 year ago

The fix should be in 2023.5.1b0

dredjohn21 commented 1 year ago

Wow you are fast - thanks so much!!

uvjim commented 1 year ago

Sorry just pushed a 2nd beta because there were errors when changing state with the last fix.