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