kopia lustrzana https://github.com/Yakifo/amqtt
Fix None if not config given (fall back to defaults)
rodzic
ca3a693f0a
commit
9bedd5f892
|
@ -65,7 +65,8 @@ class MQTTClient:
|
|||
"""
|
||||
self.logger = logging.getLogger(__name__)
|
||||
self.config = _defaults
|
||||
self.config.update(config)
|
||||
if config is not None:
|
||||
self.config.update(config)
|
||||
if client_id is not None:
|
||||
self.client_id = client_id
|
||||
else:
|
||||
|
|
Ładowanie…
Reference in New Issue