From 2228a38142e1cdfd69961c549213e482e45b4c7b Mon Sep 17 00:00:00 2001 From: Lenn Date: Tue, 12 Nov 2024 20:28:26 +0100 Subject: [PATCH] Fix command not working immediately after connection --- motionblindsble/device.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/motionblindsble/device.py b/motionblindsble/device.py index 77095a3..c32cb9b 100644 --- a/motionblindsble/device.py +++ b/motionblindsble/device.py @@ -708,6 +708,9 @@ async def establish_connection(self) -> bool: self.refresh_disconnect_timer() + # Sleep to wait for motor to finish processing + await sleep(0.2) + return True def is_connected(self) -> bool: