custom_components/aquaariston/sensor.py
def icon(self):
        """Icon to use in the frontend, if any."""
        if self._sensor_type == PARAM_ERRORS:
            try:
                if self._api.sensor_values[PARAM_ERRORS][VALUE] == []:
                    return "mdi:shield"
            except KeyError:
                pass
        elif self._sensor_type == PARAM_MODE:
            try:
                if self._api.sensor_values[PARAM_MODE][VALUE] == VAL_PROGRAM:
                    return "mdi:clock-outline"
            except KeyError:
                pass
        elif self._sensor_type == PARAM_TEMPERATURE_MODE:
            try:
                if self._api.temperature_mode == VAL_SHOWERS:
                    return "mdi:shower-head"
            except KeyError:
                pass
        return self._icon
Icon to use in the frontend, if any.
Icon to use in the frontend, if any.
Icon to use in the frontend if any .
def icon(self):
        if self._sensor_type == PARAM_ERRORS:
            try:
                if self._api.sensor_values[PARAM_ERRORS][VALUE] == []:
                    return "mdi:shield"
            except KeyError:
                pass
        elif self._sensor_type == PARAM_MODE:
            try:
                if self._api.sensor_values[PARAM_MODE][VALUE] == VAL_PROGRAM:
                    return "mdi:clock-outline"
            except KeyError:
                pass
        elif self._sensor_type == PARAM_TEMPERATURE_MODE:
            try:
                if self._api.temperature_mode == VAL_SHOWERS:
                    return "mdi:shower-head"
            except KeyError:
                pass
        return self._icon
def icon ( self ) : if self . _sensor_type == PARAM_ERRORS : try : if self . _api . sensor_values [ PARAM_ERRORS ] [ VALUE ] == [ ] : return "mdi:shield" except KeyError : pass elif self . _sensor_type == PARAM_MODE : try : if self . _api . sensor_values [ PARAM_MODE ] [ VALUE ] == VAL_PROGRAM : return "mdi:clock-outline" except KeyError : pass elif self . _sensor_type == PARAM_TEMPERATURE_MODE : try : if self . _api . temperature_mode == VAL_SHOWERS : return "mdi:shower-head" except KeyError : pass return self . _icon
Icon to use in the frontend, if any.
Icon to use in the frontend if any .
"""Icon to use in the frontend, if any."""
self