mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix tractive tests using a dict for the unique_id (#107602)
This commit is contained in:
parent
bb78b75d49
commit
ea2178a53d
@ -24,9 +24,7 @@ async def test_form(hass: HomeAssistant) -> None:
|
|||||||
assert result["type"] == "form"
|
assert result["type"] == "form"
|
||||||
assert result["errors"] is None
|
assert result["errors"] is None
|
||||||
|
|
||||||
with patch(
|
with patch("aiotractive.api.API.user_id", return_value="user_id"), patch(
|
||||||
"aiotractive.api.API.user_id", return_value={"user_id": "user_id"}
|
|
||||||
), patch(
|
|
||||||
"homeassistant.components.tractive.async_setup_entry",
|
"homeassistant.components.tractive.async_setup_entry",
|
||||||
return_value=True,
|
return_value=True,
|
||||||
) as mock_setup_entry:
|
) as mock_setup_entry:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user