mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Style fix
This commit is contained in:
parent
ae527e9c6f
commit
0584c10ef9
@ -148,10 +148,12 @@ def _process_if(hass, config, if_configs, action, cond_type):
|
|||||||
|
|
||||||
if cond_type == CONDITION_TYPE_AND:
|
if cond_type == CONDITION_TYPE_AND:
|
||||||
def if_action():
|
def if_action():
|
||||||
|
""" AND all conditions. """
|
||||||
if all(check() for check in checks):
|
if all(check() for check in checks):
|
||||||
action()
|
action()
|
||||||
else:
|
else:
|
||||||
def if_action():
|
def if_action():
|
||||||
|
""" OR all conditions. """
|
||||||
if any(check() for check in checks):
|
if any(check() for check in checks):
|
||||||
action()
|
action()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user