Use assignment expressions 38 (#58828)
This commit is contained in:
parent
b6d9e517c2
commit
72801867d6
15 changed files with 26 additions and 54 deletions
|
@ -92,8 +92,7 @@ class VeraThermostat(VeraDevice[veraApi.VeraThermostat], ClimateEntity):
|
|||
@property
|
||||
def fan_mode(self) -> str | None:
|
||||
"""Return the fan setting."""
|
||||
mode = self.vera_device.get_fan_mode()
|
||||
if mode == "ContinuousOn":
|
||||
if self.vera_device.get_fan_mode() == "ContinuousOn":
|
||||
return FAN_ON
|
||||
return FAN_AUTO
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue