From 75326d2271a224ba212ec3a4b3d6d4016a1072f1 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Thu, 6 Jun 2019 13:15:49 +0200 Subject: [PATCH] Make ForCondition a component (#616) Fixes https://github.com/esphome/issues/issues/396 --- esphome/automation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/automation.py b/esphome/automation.py index 07c3b0177f..9f9ad35520 100644 --- a/esphome/automation.py +++ b/esphome/automation.py @@ -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):