Type hint improvements (#32905)
* Complete helpers.entity_component type hints * Add discovery info type
This commit is contained in:
1 parent
7c79adad8f
commit
05abf37046
13 files changed
+120
-76
No files matched your search
@@ -266,7 +266,7 @@ def attach_entity_component_collection(
|
||||
"""Handle a collection change."""
|
||||
if change_type == CHANGE_ADDED:
|
||||
entity = create_entity(config)
|
||||
await entity_component.async_add_entities([entity]) # type: ignore
|
||||
await entity_component.async_add_entities([entity])
|
||||
entities[item_id] = entity
|
||||
return
|
||||
|
||||
|
||||
Reference in new issue
Block a user