bundles/infobeamer-monitor: fix maintenance warnings

This commit is contained in:
Franzi 2024-08-16 14:35:33 +02:00
parent 10b1fb8a5b
commit e8983829ed
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -140,13 +140,12 @@ while True:
if device["is_online"]:
if device["maintenance"]:
mqtt_out(
"maintenance required: {}".join(
"maintenance required: {}".format(' '.join(
sorted(device["maintenance"])
),
)),
level="WARN",
device=device,
)
must_dump_state = True
if (
device["is_synced"] != state[did]["is_synced"]