LLM Assist API: Inline all exposed entities (#118273)

Inline all exposed entities
This commit is contained in:
Paulus Schoutsen 2024-05-27 21:12:10 -04:00 committed by GitHub
parent a23da3bd46
commit 6f248acfd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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