Skip to content

Commit

Permalink
Update HomeAssistantDiscovery.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
iranl authored Jan 23, 2025
1 parent c5cb453 commit 9a5860a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HomeAssistantDiscovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3176,7 +3176,7 @@ JsonDocument HomeAssistantDiscovery::createHassJson(const String& uidString,

json["avty"][0]["t"] = _baseTopic + mqtt_topic_mqtt_connection_state;

if (uidString != "query_lockstate")
if (displayName != "Query lock state" && uidString.length() < 10)
{
json["avty"][1]["t"] = String("~") + String(mqtt_topic_lock_availability);
json["avty_mode"] = "all";
Expand Down

0 comments on commit 9a5860a

Please sign in to comment.