QOS 2 pour la config

This commit is contained in:
Antoine Van Elstraete 2025-04-10 21:50:47 +02:00
parent ec1dad8e8c
commit 3796f500e7
Signed by: AntoineVe
GPG Key ID: 564736A2D44A9813

View File

@ -82,7 +82,7 @@ def ha_create_config(req):
} }
ha_config.update({"dev": device, "o": origin}) ha_config.update({"dev": device, "o": origin})
ha_config.update({"state_topic": f"SNMP/{req['device_name']}/state"}) ha_config.update({"state_topic": f"SNMP/{req['device_name']}/state"})
ha_config.update({"qos": 1}) ha_config.update({"qos": 2})
cmps = {} cmps = {}
for oid in req['oids']: for oid in req['oids']:
cmps.update( cmps.update(