mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 16:17:20 +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]]]:
|
||||
"""Find all blueprints relevant to a specific device."""
|
||||
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):
|
||||
"""Yield all blueprints from all domains."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user