Make ForCondition a component (#616)

Fixes https://github.com/esphome/issues/issues/396
This commit is contained in:
Otto Winter 2019-06-06 13:15:49 +02:00
parent 8f3635b167
commit 724842084e
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -55,7 +55,7 @@ UpdateComponentAction = cg.esphome_ns.class_('UpdateComponentAction', Action)
Automation = cg.esphome_ns.class_('Automation')
LambdaCondition = cg.esphome_ns.class_('LambdaCondition', Condition)
ForCondition = cg.esphome_ns.class_('ForCondition', Condition)
ForCondition = cg.esphome_ns.class_('ForCondition', Condition, cg.Component)
def validate_automation(extra_schema=None, extra_validators=None, single=False):