Fix HAVCAction typing in Atag (#94656)

This commit is contained in:
Franck Nijhof 2023-06-15 18:43:56 +02:00 committed by GitHub
parent 81d46fe2b2
commit 324bd9a97a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ class AtagThermostat(AtagEntity, ClimateEntity):
return try_parse_enum(HVACMode, self.coordinator.data.climate.hvac_mode)
@property
def hvac_action(self) -> str | None:
def hvac_action(self) -> HVACAction | None:
"""Return the current running hvac operation."""
is_active = self.coordinator.data.climate.status
return HVACAction.HEATING if is_active else HVACAction.IDLE