From 09a500904c3485df164ad2586555e6264b527719 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 10 Feb 2026 16:14:11 -0500 Subject: [PATCH] [MOD] Fix issue with init script --- custom_components/mcp_bridge/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/mcp_bridge/__init__.py b/custom_components/mcp_bridge/__init__.py index 1000056..f16784c 100644 --- a/custom_components/mcp_bridge/__init__.py +++ b/custom_components/mcp_bridge/__init__.py @@ -30,7 +30,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: exposed_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) # Check if entity is exposed to conversation (voice assistant)