Fix data_entry_flow.UnknownStep error message (#138288)

This commit is contained in:
Erik Montnemery 2025-02-11 18:56:18 +01:00 committed by GitHub
parent 3489b20e86
commit fe3d6f93d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -561,7 +561,7 @@ class FlowManager(abc.ABC, Generic[_FlowContextT, _FlowResultT, _HandlerT]):
if not hasattr(flow, method):
self._async_remove_flow_progress(flow.flow_id)
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(

View File

@ -2887,9 +2887,7 @@ async def test_does_not_support_reconfigure(
assert resp.status == HTTPStatus.BAD_REQUEST
response = await resp.json()
assert response == {
"message": "Handler ConfigEntriesFlowManager doesn't support step reconfigure"
}
assert response == {"message": "Handler TestFlow doesn't support step reconfigure"}
async def test_list_subentries(