mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Fix justnimbus CI test (#145681)
This commit is contained in:
parent
d49a613c62
commit
ec64194ab9
@ -1,6 +1,6 @@
|
|||||||
"""Test the JustNimbus config flow."""
|
"""Test the JustNimbus config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
from justnimbus.exceptions import InvalidClientID, JustNimbusError
|
from justnimbus.exceptions import InvalidClientID, JustNimbusError
|
||||||
import pytest
|
import pytest
|
||||||
@ -132,7 +132,7 @@ async def test_reauth_flow(hass: HomeAssistant) -> None:
|
|||||||
|
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.justnimbus.config_flow.justnimbus.JustNimbusClient.get_data",
|
"homeassistant.components.justnimbus.config_flow.justnimbus.JustNimbusClient.get_data",
|
||||||
return_value=True,
|
return_value=MagicMock(),
|
||||||
):
|
):
|
||||||
result2 = await hass.config_entries.flow.async_configure(
|
result2 = await hass.config_entries.flow.async_configure(
|
||||||
result["flow_id"],
|
result["flow_id"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user