custom_components/smartthinq_sensors/sensor.py
def is_on(self):
        """Return the state of the binary sensor."""
        if self._is_binary:
            ret_val = self._def[ATTR_VALUE_FN](self)
            if isinstance(ret_val, bool):
                return ret_val
            return True if ret_val == STATE_ON else False
        return False
Return the state of the binary sensor.
Return the state of the binary sensor.
Return the state of the binary sensor .
def is_on(self):
        if self._is_binary:
            ret_val = self._def[ATTR_VALUE_FN](self)
            if isinstance(ret_val, bool):
                return ret_val
            return True if ret_val == STATE_ON else False
        return False
def is_on ( self ) : if self . _is_binary : ret_val = self . _def [ ATTR_VALUE_FN ] ( self ) if isinstance ( ret_val , bool ) : return ret_val return True if ret_val == STATE_ON else False return False
Return the state of the binary sensor.
Return the state of the binary sensor .
"""Return the state of the binary sensor."""
self