custom_components/aquaariston/water_heater.py
def extra_state_attributes(self):
        """Return the supported step of target temperature."""
        try:
            step = self._api.supported_sensors_set_values[PARAM_REQUIRED_TEMPERATURE]["step"]
        except KeyError:
            step = 1.0
        try:
            if self._api.sensor_values[PARAM_HEATING][VALUE]:
                action = ACTION_HEATING
            else:
                action = ACTION_IDLE
        except KeyError:
            action = ACTION_IDLE
        return {"target_temp_step": step, "hvac_action": action}
Return the supported step of target temperature.
Return the supported step of target temperature.
Return the supported step of target temperature .
def extra_state_attributes(self):
        try:
            step = self._api.supported_sensors_set_values[PARAM_REQUIRED_TEMPERATURE]["step"]
        except KeyError:
            step = 1.0
        try:
            if self._api.sensor_values[PARAM_HEATING][VALUE]:
                action = ACTION_HEATING
            else:
                action = ACTION_IDLE
        except KeyError:
            action = ACTION_IDLE
        return {"target_temp_step": step, "hvac_action": action}
def extra_state_attributes ( self ) : try : step = self . _api . supported_sensors_set_values [ PARAM_REQUIRED_TEMPERATURE ] [ "step" ] except KeyError : step = 1.0 try : if self . _api . sensor_values [ PARAM_HEATING ] [ VALUE ] : action = ACTION_HEATING else : action = ACTION_IDLE except KeyError : action = ACTION_IDLE return { "target_temp_step" : step , "hvac_action" : action }
Return the supported step of target temperature.
Return the supported step of target temperature .
"""Return the supported step of target temperature."""
self