custom_components/aquaariston/water_heater.py
def icon(self):
        """Return the name of the Water Heater device."""
        power_on = False
        try:
            if self._api.available:
                power_on = self._api.sensor_values[PARAM_ON][VALUE]
        except KeyError:
            return "mdi:water-pump-off"
        if power_on:
            return "mdi:water-pump"
        else:
            return "mdi:water-pump-off"
Return the name of the Water Heater device.
Return the name of the Water Heater device.
Return the name of the Water Heater device .
def icon(self):
        power_on = False
        try:
            if self._api.available:
                power_on = self._api.sensor_values[PARAM_ON][VALUE]
        except KeyError:
            return "mdi:water-pump-off"
        if power_on:
            return "mdi:water-pump"
        else:
            return "mdi:water-pump-off"
def icon ( self ) : power_on = False try : if self . _api . available : power_on = self . _api . sensor_values [ PARAM_ON ] [ VALUE ] except KeyError : return "mdi:water-pump-off" if power_on : return "mdi:water-pump" else : return "mdi:water-pump-off"
Return the name of the Water Heater device.
Return the name of the Water Heater device .
"""Return the name of the Water Heater device."""
self