This commit is contained in:
parent
ef6a2861bd
commit
3a7bf30a47
@ -26,6 +26,7 @@ def handle_status_message(client, userdata, message):
|
|||||||
topic=message.topic,
|
topic=message.topic,
|
||||||
payload=message.payload.decode()
|
payload=message.payload.decode()
|
||||||
)
|
)
|
||||||
|
LOGGER.info(data)
|
||||||
try:
|
try:
|
||||||
ids = data['topic'].replace(f"{config.MQTT_STATUS_TOPIC}/", "").split("/")
|
ids = data['topic'].replace(f"{config.MQTT_STATUS_TOPIC}/", "").split("/")
|
||||||
if len(ids) == 1:
|
if len(ids) == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user