mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 00:55:26 +02:00
📝 Fix Lint issues
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user