api: fix syntax error in mqtt connector
All checks were successful
Build Container / Build Container (push) Successful in 1m30s

This commit is contained in:
lilly 2026-05-28 16:27:20 +02:00
commit e5b880d038
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -155,7 +155,7 @@ class AsyncMqttClient:
await self.fut_connected
# re-establish all supposed mqtt subscriptions
if len(self.active_subscriptions > 0):
if len(self.active_subscriptions) > 0:
qos = 1
await self.client.subscribe((i, qos) for i in self.active_subscriptions)