Skip to content

Commit

Permalink
Update open & close function
Browse files Browse the repository at this point in the history
Functions are now async
close=>async_close
open=>async_open
  • Loading branch information
impulsio authored Mar 30, 2023
1 parent 890c374 commit cb93183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb93183

Please sign in to comment.