mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
LLM Assist API: Inline all exposed entities (#118273)
Inline all exposed entities
This commit is contained in:
parent
a23da3bd46
commit
6f248acfd5
@ -278,17 +278,6 @@ def _get_exposed_entities(
|
|||||||
area_registry = ar.async_get(hass)
|
area_registry = ar.async_get(hass)
|
||||||
entity_registry = er.async_get(hass)
|
entity_registry = er.async_get(hass)
|
||||||
device_registry = dr.async_get(hass)
|
device_registry = dr.async_get(hass)
|
||||||
interesting_domains = {
|
|
||||||
"binary_sensor",
|
|
||||||
"climate",
|
|
||||||
"cover",
|
|
||||||
"fan",
|
|
||||||
"light",
|
|
||||||
"lock",
|
|
||||||
"sensor",
|
|
||||||
"switch",
|
|
||||||
"weather",
|
|
||||||
}
|
|
||||||
interesting_attributes = {
|
interesting_attributes = {
|
||||||
"temperature",
|
"temperature",
|
||||||
"current_temperature",
|
"current_temperature",
|
||||||
@ -304,9 +293,6 @@ def _get_exposed_entities(
|
|||||||
entities = {}
|
entities = {}
|
||||||
|
|
||||||
for state in hass.states.async_all():
|
for state in hass.states.async_all():
|
||||||
if state.domain not in interesting_domains:
|
|
||||||
continue
|
|
||||||
|
|
||||||
if not async_should_expose(hass, assistant, state.entity_id):
|
if not async_should_expose(hass, assistant, state.entity_id):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user