scheduler-component icon indicating copy to clipboard operation
scheduler-component copied to clipboard

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

Open user-08-151 opened this issue 9 months ago • 3 comments

Checklist

  • [x] I checked for similar existing issues (both open and closed) before posting.
  • [x] I am running the latest version.

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.

user-08-151 avatar May 02 '24 10:05 user-08-151

Spotted this too:-

Detected that custom integration 'scheduler' calls async_track_state_changeinstead ofasync_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

gurglingtonic avatar May 04 '24 16:05 gurglingtonic

same for me:

2024-05-14 09:36:13.242 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'scheduler' calls async_track_state_changeinstead ofasync_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

Danifly80 avatar May 14 '24 07:05 Danifly80

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

JCummings49 avatar May 14 '24 13:05 JCummings49

Same here:

Detected that custom integration 'scheduler' calls async_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

ferreto1978 avatar May 19 '24 06:05 ferreto1978

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

yepp31 avatar Jun 11 '24 04:06 yepp31