mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
PyLint 1.5 fixes
This commit is contained in:
@@ -46,6 +46,7 @@ def trigger(hass, config, action):
|
||||
from_match = _in_zone(hass, zone_entity_id, from_s) if from_s else None
|
||||
to_match = _in_zone(hass, zone_entity_id, to_s)
|
||||
|
||||
# pylint: disable=too-many-boolean-expressions
|
||||
if event == EVENT_ENTER and not from_match and to_match or \
|
||||
event == EVENT_LEAVE and from_match and not to_match:
|
||||
action()
|
||||
|
||||
Reference in New Issue
Block a user