From 668685539f62a681d1f4d727ee1fd1fdd27b1247 Mon Sep 17 00:00:00 2001 From: LukaszP2 <44735995+LukaszP2@users.noreply.github.com> Date: Sat, 10 Jan 2026 10:17:08 +0100 Subject: [PATCH] Update config_flow.py This PR fixes a critical "500 Internal Server Error" in Home Assistant 2024.x/2025.x/2026.x caused by an AttributeError in config_flow.py. --- custom_components/hass_agent/config_flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/hass_agent/config_flow.py b/custom_components/hass_agent/config_flow.py index 8ee0994..778b637 100644 --- a/custom_components/hass_agent/config_flow.py +++ b/custom_components/hass_agent/config_flow.py @@ -22,7 +22,7 @@ class OptionsFlowHandler(config_entries.OptionsFlow): def __init__(self, config_entry: config_entries.ConfigEntry) -> None: """Initialize options flow.""" - self.config_entry = config_entry + self._config_entry = config_entry async def async_step_init( self, user_input: dict[str, Any] | None = None @@ -41,7 +41,7 @@ async def async_step_init( { vol.Optional( CONF_DEFAULT_NOTIFICATION_TITLE, - default=self.config_entry.options.get( + default=self._config_entry.options.get( CONF_DEFAULT_NOTIFICATION_TITLE, ATTR_TITLE_DEFAULT ), ): str