Skip to content

Commit

Permalink
Fix tractive tests using a dict for the unique_id (#107602)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jan 8, 2024
1 parent bb78b75 commit ea2178a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/components/tractive/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ea2178a

Please sign in to comment.