api: fix syntax error in mqtt connector
All checks were successful
Build Container / Build Container (push) Successful in 1m30s
All checks were successful
Build Container / Build Container (push) Successful in 1m30s
This commit is contained in:
parent
6bbfc5dc68
commit
e5b880d038
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue