diff --git a/src/ha.h b/src/ha.h index 31870bd..48e57c8 100644 --- a/src/ha.h +++ b/src/ha.h @@ -13,9 +13,7 @@ namespace Ha { uint16_t(*publisher)(const char* topic, const char* message); typedef void (*onMessage)(const char* msg); - struct Component; struct DeviceConfig { - friend struct Component; const char* id = nullptr; const char* name = nullptr; const char* model = nullptr; @@ -52,9 +50,6 @@ namespace Ha { return *this; } - protected: - DeviceConfig(const char* id) : id(id) {} - void buildConfig(JsonDocument& jsonDoc) { JsonObject device = jsonDoc.createNestedObject("device"); if (name) device["name"] = name;