mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-26 10:17:18 +00:00
fix subscribe topic
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user