From cb931834276fdd479be21c89a10cf0718157e086 Mon Sep 17 00:00:00 2001 From: impulsio <33810912+impulsio@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:05:23 +0200 Subject: [PATCH] Update open & close function Functions are now async close=>async_close open=>async_open --- examples/cover.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cover.py b/examples/cover.py index 5e045109..c0383010 100644 --- a/examples/cover.py +++ b/examples/cover.py @@ -39,14 +39,14 @@ async def main(): # To open the door, uncomment the following: #print(f"Opening door {dev.name}...") - #await dev.open(channel=0) + #await dev.async_open(channel=0) #print("Door opened!") # # Wait a bit before closing it again #await asyncio.sleep(5) # #print(f"Closing door {dev.name}...") - #await dev.close() + #await dev.async_close() # print(f"Door closed!") # Close the manager and logout from http_api