浏览代码

Fix name generator

Christopher Mullins 6 年之前
父节点
当前提交
7dad7f3e84
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 += "/";