basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.92k stars 138 forks source link

Detected that custom integration 'adaptive_lighting' accesses hass.helpers.entity_component. #1017

Closed rwjack closed 2 months ago

rwjack commented 4 months ago

Home Assistant Adaptive Lighting Issue Template

Bug Reports

Detected that custom integration 'adaptive_lighting' accesses hass.helpers.entity_component. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from entity_component directly at custom_components/adaptive_lighting/switch.py, line 2492: await self.hass.helpers.entity_component.async_update_entity(light), please create a bug report at https://github.com/basnijholt/adaptive-lighting/issues

Please confirm that you have completed the following steps:

  1. Describe the bug and how to reproduce it:

Occurs some time after boot, likely the first time Lights are adapted during the day.

ncd7 commented 2 months ago

Seeing the same in the logs.

rwjack commented 2 months ago

Problem file: https://github.com/basnijholt/adaptive-lighting/blob/8e8c520dad81fdcf4359b1c2b6ce7665b99286a6/custom_components/adaptive_lighting/switch.py#L2492

Similar fix for another addon: https://github.com/hacs/integration/pull/3528