refactored 4

This commit is contained in:
2025-11-18 14:25:09 +01:00
parent f902f40386
commit 29e2fd441b

View File

@@ -328,7 +328,8 @@ async def mqtt_worker(config: dict[str, Any], redis_client: aioredis.Redis) -> N
last_activity = asyncio.get_event_loop().time()
topic = str(message.topic)
payload_str = message.payload.decode()
logger.debug(f"MQTT message received on {topic}: {payload_str}")
retain = getattr(message, 'retain', None)
logger.debug(f"MQTT message received on ({retain=}) {topic}: {payload_str}")
# Check if this is an abstract SET message
if topic.startswith("home/") and topic.endswith("/set"):