diff --git a/evseMQTT/mqttclient.py b/evseMQTT/mqttclient.py index cc1dab2..155ad3b 100644 --- a/evseMQTT/mqttclient.py +++ b/evseMQTT/mqttclient.py @@ -52,7 +52,7 @@ def publish(self, topic, payload, qos=0, retain=False): self.client.publish(topic, payload, qos, retain) def publish_availability(self, identifier, state): - self.client.publish(f"evseMQTT/{identifier}/availability", state) + self.client.publish(f"evseMQTT/{identifier}/availability", state, 0, True) def publish_state(self, identifier, topic, state): self.client.publish(f"evseMQTT/{identifier}/state/{topic}", json.dumps(state))