From d979ea328f297f5baeeec58d988e239db11a37c0 Mon Sep 17 00:00:00 2001 From: Chris Mullins Date: Wed, 4 Oct 2023 16:04:50 -0700 Subject: [PATCH] Remove `origin` key from discovery payload, which is apparently wrong? --- 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;