Przeglądaj źródła

Fix name generator

Christopher Mullins 6 lat temu
rodzic
commit
7dad7f3e84
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/MQTT/HomeAssistantDiscoveryClient.cpp

+ 1 - 1
lib/MQTT/HomeAssistantDiscoveryClient.cpp

@@ -117,7 +117,7 @@ String HomeAssistantDiscoveryClient::buildTopic(const BulbId& bulbId) {
 
   topic += "light/";
   // Use a static ID that doesn't depend on configuration.
-  topic += "milight_hub_" + (ESP.getChipId());
+  topic += "milight_hub_" + String(ESP.getChipId());
 
   // make the object ID based on the actual parameters rather than the alias.
   topic += "/";