예제 #1
0
 def hvac_mode(self) -> str:
     from iaqualink import AqualinkState
     state = AqualinkState(self.heater.state)
     if state == AqualinkState.ON:
         return HVAC_MODE_HEAT
     else:
         return HVAC_MODE_OFF
예제 #2
0
 def hvac_mode(self) -> str:
     """Return the current HVAC mode."""
     state = AqualinkState(self.heater.state)
     if state == AqualinkState.ON:
         return HVAC_MODE_HEAT
     return HVAC_MODE_OFF