Skip to content

Commit

Permalink
Remove origin key from discovery payload, which is apparently wrong?
Browse files Browse the repository at this point in the history
  • Loading branch information
sidoh committed Oct 4, 2023
1 parent 6b1cbd9 commit d979ea3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/MQTT/HomeAssistantDiscoveryClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ void HomeAssistantDiscoveryClient::addConfig(const char* alias, const BulbId& bu
config[F("stat_t")] = mqttClient->bindTopicString(settings.mqttStateTopicPattern, bulbId);
config[F("uniq_id")] = uniqueIdBuffer;

JsonObject originMetadata = config.createNestedObject(F("o"));
originMetadata[F("url")] = deviceUrl;

JsonObject deviceMetadata = config.createNestedObject(F("dev"));
deviceMetadata[F("name")] = settings.hostname;
deviceMetadata[F("sw")] = fwVersion;
Expand Down

0 comments on commit d979ea3

Please sign in to comment.