Skip to content

Commit dfcbe71

Browse files
committed
-) Removed sleep between open & close for cover since we now wait for state anyways.
1 parent e425196 commit dfcbe71

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

example.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212

1313
EMAIL = "<EMAIL>"
1414
PASSWORD = "<PASSWORD>"
15-
ISSUE_COMMANDS = False
16-
15+
ISSUE_COMMANDS = True
1716

1817
def print_info(number: int, device):
1918
print(f" Device {number + 1}: {device.name}")
@@ -77,9 +76,6 @@ async def main() -> None:
7776
else:
7877
print(f"Opening of garage door {device.name} is not allowed.")
7978

80-
if device.open_allowed and device.close_allowed:
81-
await asyncio.sleep(5)
82-
8379
if device.close_allowed:
8480
if device.state == STATE_CLOSED:
8581
print(f"Garage door {device.name} is already closed")

0 commit comments

Comments
 (0)