fix subscribe topic

This commit is contained in:
Florian Bezannier
2021-02-01 11:56:47 +01:00
parent e2eba71d9b
commit 523631f683
+1 -1
View File
@@ -280,7 +280,7 @@ class MyPSACC:
logger.info("Connected with result code " + str(rc))
topics = [MQTT_RESP_TOPIC + self.customer_id + "/#"]
for vin in self.getVIN():
topics.append(MQTT_EVENT_TOPIC + vin + "/#")
topics.append(MQTT_EVENT_TOPIC + vin)
for topic in topics:
client.subscribe(topic)
logger.info("subscribe to " + topic)