Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions evl/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self):
self.partitions = {}
self.zones = {}

self.last_event = None
self.last_event: Event = None

self.connection = {"hostname": "", "port": 0}

Expand Down Expand Up @@ -262,7 +262,7 @@ def status_report(self) -> dict:
return self.status.report()

async def wait(self) -> None:
"""Initiate wait for incoming events in event queue."""
"""Initiate wait for incoming events in the event queue."""
while True:
(command, data) = await self._event_queue.get()
parsed_data = dt.parse(command, data)
Expand Down
4 changes: 3 additions & 1 deletion evldaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def main():

host = str(config.ip)
ed = EvlDaemon(host, config.password, config.port, config)
loop = asyncio.get_event_loop()

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

try:
loop.run_until_complete(ed.start())
Expand Down
Loading