[MOD] Fix issue with init script

This commit is contained in:
Martin 2026-02-10 16:14:11 -05:00
parent a323b1e9d0
commit 09a500904c

View File

@ -30,7 +30,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
exposed_entities = [] exposed_entities = []
# Iterate through all entities # Iterate through all entities
for entity_id, state in hass.states.async_all(): for state in hass.states.async_all():
entity_id = state.entity_id
entity_entry = entity_reg.async_get(entity_id) entity_entry = entity_reg.async_get(entity_id)
# Check if entity is exposed to conversation (voice assistant) # Check if entity is exposed to conversation (voice assistant)