Fix dangerous-default-value warnings in cloud tests (#119585)
This commit is contained in:
parent
55f8a36572
commit
d211af75ef
3 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ async def mock_cloud(hass, config=None):
|
||||||
await cloud_inst.initialize()
|
await cloud_inst.initialize()
|
||||||
|
|
||||||
|
|
||||||
def mock_cloud_prefs(hass, prefs={}):
|
def mock_cloud_prefs(hass, prefs):
|
||||||
"""Fixture for cloud component."""
|
"""Fixture for cloud component."""
|
||||||
prefs_to_set = {
|
prefs_to_set = {
|
||||||
const.PREF_ALEXA_SETTINGS_VERSION: cloud_prefs.ALEXA_SETTINGS_VERSION,
|
const.PREF_ALEXA_SETTINGS_VERSION: cloud_prefs.ALEXA_SETTINGS_VERSION,
|
||||||
|
|
|
@ -203,7 +203,7 @@ def mock_user_data():
|
||||||
def mock_cloud_fixture(hass):
|
def mock_cloud_fixture(hass):
|
||||||
"""Fixture for cloud component."""
|
"""Fixture for cloud component."""
|
||||||
hass.loop.run_until_complete(mock_cloud(hass))
|
hass.loop.run_until_complete(mock_cloud(hass))
|
||||||
return mock_cloud_prefs(hass)
|
return mock_cloud_prefs(hass, {})
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|
|
@ -117,7 +117,7 @@ async def test_handler_google_actions(hass: HomeAssistant) -> None:
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
mock_cloud_prefs(hass)
|
mock_cloud_prefs(hass, {})
|
||||||
cloud = hass.data["cloud"]
|
cloud = hass.data["cloud"]
|
||||||
|
|
||||||
reqid = "5711642932632160983"
|
reqid = "5711642932632160983"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue