Verified Commit a1ca1739 authored by Mroik's avatar Mroik
Browse files

Small fixes

parent eba32d5c
......@@ -65,5 +65,7 @@ def set_status(status: bool, update: Update, context: CallbackContext):
LOGGER.debug("Not an admin")
raise DispatcherHandlerStop
resp = mt.bot.mqtt.publish("sede/status", payload=json.dumps({"id": "Set from telegram", "status": OPEN if status else CLOSED}))
resp = mt.bot.mqtt.publish("sede/status", payload=json.dumps(
{"id": "Set from telegram", "status": OPEN if status else CLOSED}
))
LOGGER.info(resp.mid)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment