mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 05:47:10 +00:00
Fix data_entry_flow.UnknownStep error message (#138288)
This commit is contained in:
parent
3489b20e86
commit
fe3d6f93d7
@ -561,7 +561,7 @@ class FlowManager(abc.ABC, Generic[_FlowContextT, _FlowResultT, _HandlerT]):
|
|||||||
if not hasattr(flow, method):
|
if not hasattr(flow, method):
|
||||||
self._async_remove_flow_progress(flow.flow_id)
|
self._async_remove_flow_progress(flow.flow_id)
|
||||||
raise UnknownStep(
|
raise UnknownStep(
|
||||||
f"Handler {self.__class__.__name__} doesn't support step {step_id}"
|
f"Handler {flow.__class__.__name__} doesn't support step {step_id}"
|
||||||
)
|
)
|
||||||
|
|
||||||
async def _async_setup_preview(
|
async def _async_setup_preview(
|
||||||
|
@ -2887,9 +2887,7 @@ async def test_does_not_support_reconfigure(
|
|||||||
|
|
||||||
assert resp.status == HTTPStatus.BAD_REQUEST
|
assert resp.status == HTTPStatus.BAD_REQUEST
|
||||||
response = await resp.json()
|
response = await resp.json()
|
||||||
assert response == {
|
assert response == {"message": "Handler TestFlow doesn't support step reconfigure"}
|
||||||
"message": "Handler ConfigEntriesFlowManager doesn't support step reconfigure"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
async def test_list_subentries(
|
async def test_list_subentries(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user