Style fix

This commit is contained in:
Paulus Schoutsen 2015-09-15 00:11:24 -07:00
parent ae527e9c6f
commit 0584c10ef9

View file

@ -148,10 +148,12 @@ def _process_if(hass, config, if_configs, action, cond_type):
if cond_type == CONDITION_TYPE_AND:
def if_action():
""" AND all conditions. """
if all(check() for check in checks):
action()
else:
def if_action():
""" OR all conditions. """
if any(check() for check in checks):
action()