Fix Airzone sensor and binary sensor updates (#72025)

airzone: fix sensor and binary sensor updates

This regression was introduced in b9b83c05e9
along with the modifications for the strict typing.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas
2022-05-17 21:47:28 +02:00
committed by GitHub
parent c3d19f3827
commit a78f183b64
2 changed files with 12 additions and 0 deletions

View File

@@ -119,6 +119,12 @@ class AirzoneBinarySensor(AirzoneEntity, BinarySensorEntity):
entity_description: AirzoneBinarySensorEntityDescription
@callback
def _handle_coordinator_update(self) -> None:
"""Update attributes when the coordinator updates."""
self._async_update_attrs()
super()._handle_coordinator_update()
@callback
def _async_update_attrs(self) -> None:
"""Update binary sensor attributes."""