redis test 1
This commit is contained in:
1 parent
66e022bafe
commit
839f7602df
5 files changed
+46
-3
No files matched your search
@@ -52,6 +52,9 @@ def update_cache() -> None:
|
||||
if sensor.name == sensor_datum['name']:
|
||||
sensor.add_or_update(key="temp", value=sensor_datum['temp'])
|
||||
sensor.add_or_update(key="humidity", value=sensor_datum['humidity'])
|
||||
|
||||
if enable_redis:
|
||||
update_redis(get_sensor_details())
|
||||
|
||||
def scan_macs():
|
||||
new_macs = asyncio.run(_scan_once())
|
||||
|
||||
Reference in new issue
Block a user