Use assignment expressions [A-I] (#66880)

This commit is contained in:
Marc Mueller
2022-02-19 17:21:26 +01:00
committed by GitHub
parent 6e49b0e122
commit 4f20a8023b
18 changed files with 20 additions and 43 deletions

View File

@@ -99,8 +99,7 @@ class BalboaSpaClimate(BalboaEntity, ClimateEntity):
@property
def hvac_action(self) -> str:
"""Return the current operation mode."""
state = self._client.get_heatstate()
if state >= self._client.ON:
if self._client.get_heatstate() >= self._client.ON:
return CURRENT_HVAC_HEAT
return CURRENT_HVAC_IDLE