Skip to content

Commit

Permalink
Merge pull request #228 from freddieleeman/master-1
Browse files Browse the repository at this point in the history
MQTT device name equal to entity name error fix
  • Loading branch information
gysmo38 authored Aug 3, 2023
2 parents 7bf1fb5 + b287c1e commit 395794a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mitsubishi2mqtt/mitsubishi2mqtt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ void haConfig() {
const size_t capacity = JSON_ARRAY_SIZE(5) + 2 * JSON_ARRAY_SIZE(6) + JSON_ARRAY_SIZE(7) + JSON_OBJECT_SIZE(24) + 2048;
DynamicJsonDocument haConfig(capacity);

haConfig["name"] = mqtt_fn;
haConfig["name"] = nullptr;
haConfig["unique_id"] = getId();

JsonArray haConfigModes = haConfig.createNestedArray("modes");
Expand Down

0 comments on commit 395794a

Please sign in to comment.