From 0d279ccd13fee63fc3053063f4d9e4dfab87e52a Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Mon, 18 Mar 2024 00:47:11 +0100 Subject: [PATCH] Improve scaffold test_config_flow (#113229) Update test_config_flow.py Use DOMAIN constant --- .../templates/config_flow_oauth2/tests/test_config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/scaffold/templates/config_flow_oauth2/tests/test_config_flow.py b/script/scaffold/templates/config_flow_oauth2/tests/test_config_flow.py index d0000b800df..6e3a2047c6e 100644 --- a/script/scaffold/templates/config_flow_oauth2/tests/test_config_flow.py +++ b/script/scaffold/templates/config_flow_oauth2/tests/test_config_flow.py @@ -42,7 +42,7 @@ async def test_full_flow( ) -> None: """Check full flow.""" result = await hass.config_entries.flow.async_init( - "NEW_DOMAIN", context={"source": config_entries.SOURCE_USER} + DOMAIN, context={"source": config_entries.SOURCE_USER} ) state = config_entry_oauth2_flow._encode_jwt( hass,