Skip to content

Commit

Permalink
Add translation checks for abort result in options flows
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Oct 15, 2024
1 parent d2db25c commit ffda4a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/components/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
SOURCE_SYSTEM,
ConfigEntriesFlowManager,
FlowResult,
OptionsFlowManager,
)
from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.core import HomeAssistant
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit ffda4a0

Please sign in to comment.