From 32fd3dff2bbae0152a2ac611a890876b1b44a3a9 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 7 Feb 2018 18:55:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20Lint=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homeassistant/components/light/grouped_light.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/light/grouped_light.py b/homeassistant/components/light/grouped_light.py index 843667325ea..2e11b669793 100644 --- a/homeassistant/components/light/grouped_light.py +++ b/homeassistant/components/light/grouped_light.py @@ -229,6 +229,8 @@ class GroupedLight(light.Light): yield from self.async_update_ha_state() +# https://github.com/PyCQA/pylint/issues/1543 +# pylint: disable=bad-whitespace def _find_state_attributes(states: List[State], key: str, force_on: bool = True) -> Iterator[T]: """Find attributes with matching key from states. @@ -241,6 +243,8 @@ def _find_state_attributes(states: List[State], key: str, yield state.attributes.get(key) +# https://github.com/PyCQA/pylint/issues/1543 +# pylint: disable=bad-whitespace def _reduce_attribute(states: List[State], key: str, default: Optional[T] = None, force_on: bool = True) -> T: """Find the first attribute matching key from states.