Fix HAVCAction typing in Genius Hub (#94659)

This commit is contained in:
Franck Nijhof 2023-06-15 18:43:11 +02:00 committed by GitHub
parent 7e5a9ea6c7
commit 68f87fe42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ class GeniusClimateZone(GeniusHeatingZone, ClimateEntity):
return list(HA_HVAC_TO_GH) return list(HA_HVAC_TO_GH)
@property @property
def hvac_action(self) -> str | None: def hvac_action(self) -> HVACAction | None:
"""Return the current running hvac operation if supported.""" """Return the current running hvac operation if supported."""
if "_state" in self._zone.data: # only for v3 API if "_state" in self._zone.data: # only for v3 API
if self._zone.data["output"] == 1: if self._zone.data["output"] == 1: