Add TODO for system redis channel

This commit is contained in:
/rootzoll 2022-03-16 09:46:58 +01:00 committed by GitHub
parent 803404726d
commit d466d3ab47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,11 @@ async def redis_get(key: str) -> str:
return v.decode("utf-8")
# TODO
# idea is to have a second redis channel called system, that the API subscribes to. If for example
# the 'state' value gets changed by the _cache.sh script, it should publish this to this channel
# so the API can forward the change to thru the SSE to the WebUI
class SSE:
SYSTEM_INFO = "system_info"
HARDWARE_INFO = "hardware_info"