mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Code styling tweaks to core helpers (#85441)
This commit is contained in:
@@ -90,11 +90,11 @@ class EntityComponent(Generic[_EntityT]):
|
||||
|
||||
@property
|
||||
def entities(self) -> Iterable[_EntityT]:
|
||||
"""
|
||||
Return an iterable that returns all entities.
|
||||
"""Return an iterable that returns all entities.
|
||||
|
||||
As the underlying dicts may change when async context is lost, callers that
|
||||
iterate over this asynchronously should make a copy using list() before iterating.
|
||||
As the underlying dicts may change when async context is lost,
|
||||
callers that iterate over this asynchronously should make a copy
|
||||
using list() before iterating.
|
||||
"""
|
||||
return chain.from_iterable(
|
||||
platform.entities.values() # type: ignore[misc]
|
||||
|
||||
Reference in New Issue
Block a user