(value)
return value in [1, STATE_ON, STATE_OPEN, 'high', True]
Return the bool value according to any type of value.
Return the bool value according to any type of value.
Return the bool value according to any type of value .
def bool_value(value) -> bool:
        """Return the bool value according to any type of value."""
        return value in [1, STATE_ON, STATE_OPEN, 'high', True]
def bool_value ( value ) -> bool : return value in [ 1 , STATE_ON , STATE_OPEN , 'high' , True ]