martinarva / dynamic_energy_cost

62 stars 13 forks source link

Async_track_state_change deprecated warning #11

Closed dunxd closed 5 months ago

dunxd commented 5 months ago

Describe the bug Integration throws following log message:

Detected that custom integration 'dynamic_energy_cost' 
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/dynamic_energy_cost/energy_based_sensors.py, line 99:
async_track_state_change(self.hass, self._energy_sensor_id, self._async_update_energy_price)
martinarva commented 5 months ago

Fixed in latest release: https://github.com/martinarva/dynamic_energy_cost/releases/tag/v0.2.5

Please verify and close

dunxd commented 5 months ago

Warning gone after update. Great!