1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Update flake8 to 3.7.5 (#20761)

* Upgrade flake8

* Upgrade flake8

* Add noqa for hound
This commit is contained in:
Daniel Høyer Iversen
2019-02-05 11:12:09 +01:00
committed by Pascal Vizeli
parent 2733919cd8
commit ef6b0b8e0b
8 changed files with 13 additions and 10 deletions

View File

@@ -778,7 +778,7 @@ class StateMachine:
self._bus = bus
self._loop = loop
def entity_ids(self, domain_filter: Optional[str] = None)-> List[str]:
def entity_ids(self, domain_filter: Optional[str] = None) -> List[str]:
"""List of entity ids that are being tracked."""
future = run_callback_threadsafe(
self._loop, self.async_entity_ids, domain_filter
@@ -800,13 +800,13 @@ class StateMachine:
return [state.entity_id for state in self._states.values()
if state.domain == domain_filter]
def all(self)-> List[State]:
def all(self) -> List[State]:
"""Create a list of all states."""
return run_callback_threadsafe( # type: ignore
self._loop, self.async_all).result()
@callback
def async_all(self)-> List[State]:
def async_all(self) -> List[State]:
"""Create a list of all states.
This method must be run in the event loop.