There was an error while loading. Please reload this page.
1 parent dd7b2b2 commit 1cd2bf1Copy full SHA for 1cd2bf1
1 file changed
yaqd-fakes/yaqd_fakes/_fake_sensor.py
@@ -28,7 +28,7 @@ def __init__(self, name, config, config_filepath):
28
self._channel_generators[name] = random_walk(min_, max_)
29
else:
30
raise Exception(f"channel kind {kwargs['kind']} not recognized")
31
- self._loop.create_task(self._update_measurements())
+ asyncio.get_running_loop().create_task(self._update_measurements())
32
33
async def _update_measurements(self):
34
while True:
0 commit comments