def __init__(self, name, state):
        self._name = name
        self._state = state
Initialize the lock.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/lock/demo.py/DemoLock.__init__