mirror of
https://github.com/home-assistant/core.git
synced 2025-11-17 15:00:12 +00:00
Use assignment expressions [A-I] (#66880)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user