Set client_id to None when none is specified
This commit is contained in:
parent
f94c1d1cf1
commit
566f5145a0
|
@ -19,7 +19,7 @@ def main():
|
|||
if 'client_id' in config['mqtt']:
|
||||
client_id = config['mqtt']['client_id']
|
||||
else:
|
||||
client_id = config['host']['name']
|
||||
client_id = None
|
||||
|
||||
mqtt = MQTTClient(mcfg['host'], mcfg['user'], mcfg['password'], client_id)
|
||||
mqtt_topic = mcfg['sensor_topic']
|
||||
|
|
Loading…
Reference in New Issue