nielsfaber / scheduler-component

Custom component for HA that enables the creation of scheduler entities
GNU General Public License v3.0
638 stars 41 forks source link

Deprecation warning that 'scheduler' calls `async_track_state_change` instead of `async_track_state_change_event` #354

Closed user-08-151 closed 3 months ago

user-08-151 commented 5 months ago

Checklist

Expected behavior

No warnings when using sheduler-component.

Actual behavior

I'm getting following warning:

2024-05-02 12:27:55.977 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'scheduler' calls `async_track_state_change` instead of `async_track_state_change_event` which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/scheduler/__init__.py, line 428: self._workday_tracker = async_track_state_change(, please create a bug report at https://github.com/nielsfaber/scheduler-component/issues

Steps to Reproduce

Add a task that run on workdays.

gurglingtonic commented 5 months ago

Spotted this too:-

Detected that custom integration 'scheduler' callsasync_track_state_changeinstead ofasync_track_state_change_eventwhich is deprecated and will be removed in Home Assistant 2025.5 at custom_components/scheduler/actions.py, line 401: async_track_state_change(, please create a bug report at https://github.com/nielsfaber/scheduler-component/issues

Danifly80 commented 4 months ago

same for me:

2024-05-14 09:36:13.242 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'scheduler' callsasync_track_state_changeinstead ofasync_track_state_change_eventwhich is deprecated and will be removed in Home Assistant 2025.5 at custom_components/scheduler/__init__.py, line 428: self._workday_tracker = async_track_state_change(, please create a bug report at https://github.com/nielsfaber/scheduler-component/issues

JCummings49 commented 4 months ago

I’m getting a similar warning like this too.

Logger: homeassistant.helpers.frame Source: helpers/frame.py:190 First occurred: May 13, 2024 at 10:55:00 PM (1 occurrences) Last logged: May 13, 2024 at 10:55:00 PM

Detected that custom integration 'scheduler' calls async_track_state_change instead of async_track_state_change_event which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/scheduler/actions.py, line 401: async_track_state_change(, please create a bug report at https://github.com/nielsfaber/scheduler-component/issues

ferreto1978 commented 4 months ago

Same here:

Detected that custom integration 'scheduler' callsasync_track_state_changeinstead ofasync_track_state_change_eventwhich is deprecated and will be removed in Home Assistant 2025.5 at custom_components/scheduler/actions.py, line 401: async_track_state_change(, please create a bug report at https://github.com/nielsfaber/scheduler-component/issues

Not sure if this is helpfull, but the full message is:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:190
First occurred: 07:55:28 (3 occurrences)
Last logged: 07:55:37

Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
Detected that custom integration 'scheduler' calls `async_track_state_change` instead of `async_track_state_change_event` which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/scheduler/actions.py, line 401: async_track_state_change(, please create a bug report at https://github.com/nielsfaber/scheduler-component/issues
Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 630: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
yepp31 commented 3 months ago

hi, the same bug for me...😭😭

2024-06-10 21:53:06.814 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'scheduler' calls async_track_state_change instead of async_track_state_change_event which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/scheduler/actions.py, line 401: async_track_state_change(, please create a bug report at https://github.com/nielsfaber/scheduler-component/issues