@property
    def is_on(self):
        """Return True if the binary sensor is on."""
        if self.value_type in self._values:
            return self._values[self.value_type] == STATE_ON
        return False
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/mysensors.py/MySensorsBinarySensor.is_on/original