diff --git a/tests/components/conftest.py b/tests/components/conftest.py index 12bf3ae7d4f5a..01c0da4f97a93 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