forked from platypush/platypush
zigbee.mqtt backend configuration should be fetched from the zigbee.mqtt plugin configuration if not reported
This commit is contained in:
parent
1a314ffd6b
commit
a1cd25fe5a
1 changed files with 10 additions and 1 deletions
|
@ -101,6 +101,11 @@ class ZigbeeMqttBackend(MqttBackend):
|
||||||
'password': password or plugin.password,
|
'password': password or plugin.password,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kwargs = {
|
||||||
|
**kwargs,
|
||||||
|
**self.server_info,
|
||||||
|
}
|
||||||
|
|
||||||
listeners = [{
|
listeners = [{
|
||||||
**self.server_info,
|
**self.server_info,
|
||||||
'topics': [
|
'topics': [
|
||||||
|
@ -109,7 +114,11 @@ class ZigbeeMqttBackend(MqttBackend):
|
||||||
],
|
],
|
||||||
}]
|
}]
|
||||||
|
|
||||||
super().__init__(subscribe_default_topic=False, listeners=listeners, client_id=client_id, *args, **kwargs)
|
super().__init__(
|
||||||
|
*args, subscribe_default_topic=False,
|
||||||
|
listeners=listeners, client_id=client_id, **kwargs
|
||||||
|
)
|
||||||
|
|
||||||
if not client_id:
|
if not client_id:
|
||||||
self.client_id += '-zigbee-mqtt'
|
self.client_id += '-zigbee-mqtt'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue