Skip to content

Commit

Permalink
restored kasa (no more hello world)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimkring authored Jul 1, 2022
1 parent 38d3814 commit 666cc40
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions kasa_cli/__main__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
__version__ = '0.1.0'
# import asyncio
# from kasa import cli
import asyncio
from kasa import cli

if __name__ == "__main__":

# fixes a "raise RuntimeError('Event loop is closed')" error
# https://stackoverflow.com/questions/45600579/asyncio-event-loop-is-closed-when-getting-loop
# asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

# cli.cli()
print("hello world!")
cli.cli()

0 comments on commit 666cc40

Please sign in to comment.