Parcourir la source

Fix name generator

Christopher Mullins il y a 6 ans
Parent
commit
7dad7f3e84
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 += "/";