Skip to content

Commit

Permalink
Bugfix: event_loop unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
kaffetorsk committed Nov 1, 2024
1 parent 1e1c87c commit f712176
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def __init__(self, arlo_camera, ffmpeg_out,
self._default_resolution = default_resolution
self.resolution = None
self.idle_video = None
self.event_loop = asyncio.get_running_loop()
logging.info(f"Camera added: {self.name}")

async def run(self):
Expand Down
1 change: 1 addition & 0 deletions device.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def __init__(self, arlo_device, status_interval):
self.name = self._arlo.name.replace(" ", "_").lower()
self.status_interval = status_interval
self._state_event = asyncio.Event()
self.event_loop = asyncio.get_running_loop()

async def run(self):
"""
Expand Down

0 comments on commit f712176

Please sign in to comment.