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