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

Deprecation warning in 2024.5.0b1 #984

Closed dcmeglio closed 1 month ago

dcmeglio commented 2 months ago

Home Assistant Adaptive Lighting Issue Template

Bug Reports

If you need help with using or configuring Adaptive Lighting, please open a Q&A discussion thread here instead.

Before submitting a bug report, please follow these troubleshooting steps:

Please confirm that you have completed the following steps:

Required information for bug reports:

Please include the following information in your issue.

Issues missing this information may not be addressed.

  1. Debug logs captured while the issue occurred. See here for instructions on enabling debug logging:
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
  1. Your Adaptive Lighting configuration:

N/A running 1.21.1

  1. (If using Zigbee2MQTT), provide your configuration files (remove all personal information before posting): N/A

  2. Describe the bug and how to reproduce it: Upgrade to 2024.5.X, this is a new deprecation warning . Check logs. This is a new deprecation warning being added to 2024.5

  3. Steps to reproduce the behavior: Upgrade to 2024.5.X, this is a new deprecation warning . Check logs

basnijholt commented 1 month ago

Fixed by #991