Closed maybe-sybr closed 1 year ago
Seems to have something to do with this code being deprecated
warning when running:
fsr/webui/server/server.py:327: DeprecationWarning: There is no current event loop
main_thread_loop = asyncio.get_event_loop()
I mentioned this on Discord a couple of months ago, but have only just gotten back into hacking on the FSR code. This issue manifests as a TypeError in
aiohttp
when you hit ctrl-C to interrupt the script, like so:Per https://github.com/aio-libs/aiohttp/issues/5905, this just looks like the dependency in
requirements.txt
needs to be bumped. Installing the newer releases ofaiohttp
andasync-timeout
(>= 4.0 seems necessary) fixes the ^C issue, but causes something else to break silently so that sensor values don't get reported to the UI. The value bars and the time plot both sit at 0, even though I apply pressure to my test sensor.No sure what the breakage with the value reporting is, if I work it out I'll follow up here or make another issue.