From 45c14318884de2e4cb44636c79a37fd362226ab9 Mon Sep 17 00:00:00 2001 From: Chris Mullins Date: Wed, 4 Oct 2023 23:40:16 -0700 Subject: [PATCH] Remove `origin` key from discovery payload, which is apparently wrong? (#805) --- lib/MQTT/HomeAssistantDiscoveryClient.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/MQTT/HomeAssistantDiscoveryClient.cpp b/lib/MQTT/HomeAssistantDiscoveryClient.cpp index 6d053a11..0357671d 100644 --- a/lib/MQTT/HomeAssistantDiscoveryClient.cpp +++ b/lib/MQTT/HomeAssistantDiscoveryClient.cpp @@ -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;