Skip to content

Commit

Permalink
Fix: mqtt publish requires port as int.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Jan 12, 2024
1 parent 2ecf4de commit 5c9b26f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meters_to_ha/meters_to_ha.py
Original file line number Diff line number Diff line change
Expand Up @@ -2873,7 +2873,7 @@ def update_veolia_device(self, csv_file):
if data is not None:
state_topic = f"veolia/{data['contract']}/last_data"
mqtt_server = self.configuration[PARAM_MQTT_SERVER]
mqtt_port = self.configuration[PARAM_MQTT_PORT]
mqtt_port = int(self.configuration[PARAM_MQTT_PORT])
mqtt_login = self.configuration[PARAM_MQTT_LOGIN]
mqtt_password = self.configuration[PARAM_MQTT_PASSWORD]
auth = {"username": mqtt_login, "password": mqtt_password}
Expand Down

0 comments on commit 5c9b26f

Please sign in to comment.