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