1
0
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:
Paulus Schoutsen
2015-11-29 13:49:05 -08:00
parent 01203c7c4c
commit a301d869d7
32 changed files with 96 additions and 94 deletions

View File

@@ -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()