def async_lock(self, **kwargs):
    'Lock the lock.\n\n        This method must be run in the event loop and returns a coroutine.\n        '
    return self.hass.loop.run_in_executor(None, ft.partial(self.lock, **kwargs))
Lock the lock.

This method must be run in the event loop and returns a coroutine.
def async_lock(self, **kwargs):
    'Lock the lock.\n\n        This method must be run in the event loop and returns a coroutine.\n        '
    return self.hass.loop.run_in_executor(None, ft.partial(self.lock, **kwargs))