mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 00:27:19 +00:00
only primary entities
This commit is contained in:
parent
410cbdd99b
commit
c2dc4ffa76
@ -42,7 +42,11 @@ async def async_find_relevant_blueprints(
|
|||||||
) -> dict[str, list[dict[str, Any]]]:
|
) -> dict[str, list[dict[str, Any]]]:
|
||||||
"""Find all blueprints relevant to a specific device."""
|
"""Find all blueprints relevant to a specific device."""
|
||||||
results = {}
|
results = {}
|
||||||
entities = er.async_entries_for_device(er.async_get(hass), device_id)
|
entities = [
|
||||||
|
entry
|
||||||
|
for entry in er.async_entries_for_device(er.async_get(hass), device_id)
|
||||||
|
if not entry.entity_category
|
||||||
|
]
|
||||||
|
|
||||||
async def all_blueprints_generator(hass: HomeAssistant):
|
async def all_blueprints_generator(hass: HomeAssistant):
|
||||||
"""Yield all blueprints from all domains."""
|
"""Yield all blueprints from all domains."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user