Skip to content

Commit

Permalink
Correct two more missed legacy methods
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus committed Aug 11, 2023
1 parent 89bc565 commit b32e6f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def async_set_hvac_mode(self, hvac_mode: str) -> None:
"""
if hvac_mode in self._attr_hvac_modes:
self._attr_hvac_mode = hvac_mode
await self.async_update_ha_state()
self.async_write_ha_state()

async def async_set_temperature_internal(self, parameter, data):
"""Set temperature."""
Expand Down Expand Up @@ -428,7 +428,7 @@ def track_entity_id(
async def changed(entity_id: str, old_state: State, new_state: State):
update_fun(new_state)
await self._async_publish()
await self.async_update_ha_state()
self.async_write_ha_state()

update_fun(self.hass.states.get(tracked_entity_id))

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"codeowners": [
"@elupus"
],
"version": "1.5.8"
"version": "1.5.9"
}

0 comments on commit b32e6f2

Please sign in to comment.