Skip to content

Update climate.py - #1612

Closed
mbarrila wants to merge 1 commit into
smartHomeHub:masterfrom
mbarrila:patch-1
Closed

mbarrila wants to merge 1 commit into
smartHomeHub:masterfrom
mbarrila:patch-1

Conversation

@mbarrila

@mbarrila mbarrila commented Nov 6, 2026

Copy link
Copy Markdown

Summary

Fixes compatibility issues with recent Home Assistant releases (2026.x and newer) where legacy state-tracking functions were removed.

Changes

  • Replaced deprecated async_track_state_change with async_track_state_change_event.
  • Updated sensor callback methods (_async_temp_sensor_changed, _async_humidity_sensor_changed, _async_power_sensor_changed) to properly handle the new event object structure and extract new_state / old_state.

Fix compatibility for Home Assistant 2026.x+
@mbarrila mbarrila closed this Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant