def METHOD_NAME(self):
    """Return whether the switch is on or not."""
    # If there is no switch, it is always on
    if self._switch_dps is None:
        return self.available
    return self._switch_dps.get_value(self._device)