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
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