@property
    def is_locked(self):
        return self._state == STATE_LOCKED
Return true if lock is locked.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/lock/demo.py/DemoLock.is_locked