From ea2178a53d1a1cde165d89a147ecd485cd664604 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 8 Jan 2024 13:10:15 -1000 Subject: [PATCH] Fix tractive tests using a dict for the unique_id (#107602) --- tests/components/tractive/test_config_flow.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/components/tractive/test_config_flow.py b/tests/components/tractive/test_config_flow.py index 6cd1a4efca8..6dd6f119d45 100644 --- a/tests/components/tractive/test_config_flow.py +++ b/tests/components/tractive/test_config_flow.py @@ -24,9 +24,7 @@ async def test_form(hass: HomeAssistant) -> None: assert result["type"] == "form" assert result["errors"] is None - with patch( - "aiotractive.api.API.user_id", return_value={"user_id": "user_id"} - ), patch( + with patch("aiotractive.api.API.user_id", return_value="user_id"), patch( "homeassistant.components.tractive.async_setup_entry", return_value=True, ) as mock_setup_entry: