Skip to content

Commit

Permalink
Only call conversation should_expose once (home-assistant#116891)
Browse files Browse the repository at this point in the history
Only call should expose once
  • Loading branch information
balloob authored May 6, 2024
1 parent 5d5f311 commit 4fce99e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions homeassistant/components/conversation/default_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ async def async_setup_default_agent(
await entity_component.async_add_entities([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
def async_entity_state_listener(
event: core.Event[core.EventStateChangedData],
Expand Down

0 comments on commit 4fce99e

Please sign in to comment.