From ffda4a081c60f064f213dada47192dd19c2d3748 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:00:00 +0000 Subject: [PATCH] Add translation checks for abort result in options flows --- tests/components/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/components/conftest.py b/tests/components/conftest.py index 12bf3ae7d4f5a1..01c0da4f97a93a 100644 --- a/tests/components/conftest.py +++ b/tests/components/conftest.py @@ -16,6 +16,7 @@ SOURCE_SYSTEM, ConfigEntriesFlowManager, FlowResult, + OptionsFlowManager, ) from homeassistant.const import STATE_OFF, STATE_ON from homeassistant.core import HomeAssistant @@ -530,6 +531,9 @@ async def _async_handle_step( if isinstance(self, ConfigEntriesFlowManager): category = "config" component = flow.handler + elif isinstance(self, OptionsFlowManager): + category = "options" + component = flow.hass.config_entries.async_get_entry(flow.handler).domain else: return result