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
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
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!