chore: minor fixes

pull/106/head
Jeff Culverhouse 3 months ago
parent 3ff272ebe8
commit 8e1cdb313d

@ -1,3 +1,3 @@
# libexpat is only pulled in via apt-get install git during build.
# It is not used in the final runtime image or by blink2mqtt at all.
# It is not used in the final runtime image or by amcrest2mqtt at all.
CVE-2025-59375

@ -170,6 +170,8 @@ class PublishMixin:
if sub and k != sub:
continue
topic = self.mqtt_helper.stat_t(device_id, state, k)
if isinstance(v, list):
v = json.dumps(v)
await asyncio.to_thread(self.mqtt_helper.safe_publish, topic, v, retain=True)
else:
topic = self.mqtt_helper.stat_t(device_id, state)

Loading…
Cancel
Save