custom_components/aquaariston/binary_sensor.py
def available(self):
        """Return True if entity is available."""
        if self._sensor_type == PARAM_ONLINE:
            return True
        elif self._sensor_type == PARAM_CHANGING_DATA:
            return self._api.available
        else:
            return (
                self._api.available
                and not self._api.sensor_values[self._sensor_type][VALUE] is None
            )
Return True if entity is available.
Return True if entity is available.
Return True if entity is available .
def available(self):
        if self._sensor_type == PARAM_ONLINE:
            return True
        elif self._sensor_type == PARAM_CHANGING_DATA:
            return self._api.available
        else:
            return (
                self._api.available
                and not self._api.sensor_values[self._sensor_type][VALUE] is None
            )
def available ( self ) : if self . _sensor_type == PARAM_ONLINE : return True elif self . _sensor_type == PARAM_CHANGING_DATA : return self . _api . available else : return ( self . _api . available and not self . _api . sensor_values [ self . _sensor_type ] [ VALUE ] is None )
Return True if entity is available.
Return True if entity is available .
"""Return True if entity is available."""
self