@property
    def is_on(self):
        return self._state
Return true if the binary sensor is on.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/demo.py/DemoBinarySensor.is_on