Skip to content

Commit

Permalink
Support subcomponents (e.g. alarms)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Feb 17, 2021
1 parent 9a26d8e commit 2fdbe00
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -28,7 +28,7 @@ class ComponentFactoryWrapper extends AbstractFactory {
}

void setChild(FactoryBuilderSupport build, Object parent, Object child) {
if (child instanceof Property) {
if (child instanceof Property || child instanceof Component) {
parent.add(child)
}
}
Expand Down

0 comments on commit 2fdbe00

Please sign in to comment.