mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 05:47:10 +00:00
Only call conversation should_expose once (#116891)
Only call should expose once
This commit is contained in:
parent
5d5f311898
commit
4fce99edb5
@ -126,10 +126,6 @@ async def async_setup_default_agent(
|
|||||||
await entity_component.async_add_entities([entity])
|
await entity_component.async_add_entities([entity])
|
||||||
hass.data[DATA_DEFAULT_ENTITY] = entity
|
hass.data[DATA_DEFAULT_ENTITY] = entity
|
||||||
|
|
||||||
entity_registry = er.async_get(hass)
|
|
||||||
for entity_id in entity_registry.entities:
|
|
||||||
async_should_expose(hass, DOMAIN, entity_id)
|
|
||||||
|
|
||||||
@core.callback
|
@core.callback
|
||||||
def async_entity_state_listener(
|
def async_entity_state_listener(
|
||||||
event: core.Event[core.EventStateChangedData],
|
event: core.Event[core.EventStateChangedData],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user