Retain discovery
This commit is contained in:
parent
834149060b
commit
82da1fe899
@ -102,7 +102,7 @@ def discovery():
|
|||||||
publish.single(
|
publish.single(
|
||||||
MQTT_DISCOVERY_PREFIX + '/sensor/' + MQTT_PREFIX + '/' + MQTTUser + '/config',
|
MQTT_DISCOVERY_PREFIX + '/sensor/' + MQTT_PREFIX + '/' + MQTTUser + '/config',
|
||||||
message,
|
message,
|
||||||
retain=False,
|
retain=True,
|
||||||
hostname=MQTT_HOST,
|
hostname=MQTT_HOST,
|
||||||
port=MQTT_PORT,
|
port=MQTT_PORT,
|
||||||
auth={'username':MQTT_USERNAME, 'password':MQTT_PASSWORD}
|
auth={'username':MQTT_USERNAME, 'password':MQTT_PASSWORD}
|
||||||
|
Loading…
Reference in New Issue
Block a user