custom_components/aquaariston/switch.py
def is_on(self):
        """Return true if switch is on."""
        try:
            if not self._api.available:
                return False
            return self._api.sensor_values[self._switch_type][VALUE]
        except KeyError:
            return False
Return true if switch is on.
Return true if switch is on.
Return true if switch is on .
def is_on(self):
        try:
            if not self._api.available:
                return False
            return self._api.sensor_values[self._switch_type][VALUE]
        except KeyError:
            return False
def is_on ( self ) : try : if not self . _api . available : return False return self . _api . sensor_values [ self . _switch_type ] [ VALUE ] except KeyError : return False
Return true if switch is on.
Return true if switch is on .
"""Return true if switch is on."""
self