Set client_id to None when none is specified

This commit is contained in:
Sebastian Lohff 2019-07-10 00:04:46 +02:00
parent f94c1d1cf1
commit 566f5145a0
1 changed files with 1 additions and 1 deletions

View File

@ -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']