Explorar el Código

Fix name generator

Christopher Mullins hace 6 años
padre
commit
7dad7f3e84
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 += "/";