Skip to content

Commit a77ecb9

Browse files
authored
Merge pull request #7 from daniellandau/master
anavi-miracle-controller-sw: Fix state_topic typo
2 parents 700e2da + 18a8986 commit a77ecb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anavi-miracle-controller-sw/anavi-miracle-controller-sw.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ bool publishSensorDiscovery(const char *config_key,
11711171
json["device_class"] = device_class;
11721172
json["name"] = String(ha_name) + " " + name_suffix;
11731173
json["unique_id"] = String("anavi-") + machineId + "-" + config_key;
1174-
json["state_topic"] = String(workgroup) + "/" + machineId + state_topic;
1174+
json["state_topic"] = String(workgroup) + "/" + machineId + "/" + state_topic;
11751175
json["unit_of_measurement"] = unit;
11761176
json["value_template"] = value_template;
11771177

0 commit comments

Comments
 (0)