mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +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)
|
||||
entity_registry = er.async_get(hass)
|
||||
device_registry = dr.async_get(hass)
|
||||
interesting_domains = {
|
||||
"binary_sensor",
|
||||
"climate",
|
||||
"cover",
|
||||
"fan",
|
||||
"light",
|
||||
"lock",
|
||||
"sensor",
|
||||
"switch",
|
||||
"weather",
|
||||
}
|
||||
interesting_attributes = {
|
||||
"temperature",
|
||||
"current_temperature",
|
||||
@ -304,9 +293,6 @@ def _get_exposed_entities(
|
||||
entities = {}
|
||||
|
||||
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):
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user