use better names for constructing secondary entities
This commit is contained in:
parent
3e87d60434
commit
13bbb5ffc4
@ -162,15 +162,14 @@ namespace Ha {
|
||||
return *this;
|
||||
}
|
||||
|
||||
Builder& withSecondary(Component* c) {
|
||||
Builder& asSecondary(Component* c) {
|
||||
c->mainDevice = &DeviceConfig::create(cmp->id);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Builder& withDiagnostic(Component* c) {
|
||||
Builder& asDiagnostic(Component* c) {
|
||||
c->entityCategory = "diagnostic";
|
||||
c->mainDevice = &DeviceConfig::create(cmp->id);
|
||||
return *this;
|
||||
return asSecondary(c);
|
||||
}
|
||||
|
||||
Builder& asDevice(DeviceConfig* deviceConfig) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user