basnijholt / adaptive-lighting

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

Remove deprecated 'run_immediately' #991

Closed erdnaxela02 closed 1 month ago

erdnaxela02 commented 1 month ago

Remove 'run_immediately' which will be deprecated in version 2025.5

I removed 'run immediately' from the 'async_listen' and 'async_listen_once' calls since this argument will be deprecated in versions > 2025.5 as indicated in the debug LOG

Detected that custom integration 'adaptive_lighting' calls `async_listen` with run_immediately, which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/adaptive_lighting/switch.py, line 1665: self.hass.bus.async_listen(, please create a bug report at https://github.com/basnijholt/adaptive-lighting/issues
Detected that custom integration 'adaptive_lighting' calls `async_listen` with run_immediately, which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/adaptive_lighting/switch.py, line 1670: self.hass.bus.async_listen(, please create a bug report at https://github.com/basnijholt/adaptive-lighting/issues
Detected that custom integration 'adaptive_lighting' calls `async_listen_once` with run_immediately, which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/adaptive_lighting/switch.py, line 958: self.hass.bus.async_listen_once(, please create a bug report at https://github.com/basnijholt/adaptive-lighting/issues

As well as on this pull request from HomeAssistant Core : https://github.com/home-assistant/core/pull/115169

This resolves the issue https://github.com/basnijholt/adaptive-lighting/issues/984

I hope I don't do anything stupid, I just want to make my little contribution Thank you for the work you put in for this custom_component!

basnijholt commented 1 month ago

@all-contributors add @erdnaxela02 for code

allcontributors[bot] commented 1 month ago

@basnijholt

I've put up a pull request to add @erdnaxela02! :tada: