@property
    def is_on(self):
        """Return true if device is on."""
        self.calls.append(('is_on', {}))
        return self._state == STATE_ON
dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py/MockToggleDevice.is_on/original