mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix dangerous-default-value warnings in cloud tests (#119585)
This commit is contained in:
parent
55f8a36572
commit
d211af75ef
@ -69,7 +69,7 @@ async def mock_cloud(hass, config=None):
|
||||
await cloud_inst.initialize()
|
||||
|
||||
|
||||
def mock_cloud_prefs(hass, prefs={}):
|
||||
def mock_cloud_prefs(hass, prefs):
|
||||
"""Fixture for cloud component."""
|
||||
prefs_to_set = {
|
||||
const.PREF_ALEXA_SETTINGS_VERSION: cloud_prefs.ALEXA_SETTINGS_VERSION,
|
||||
|
@ -203,7 +203,7 @@ def mock_user_data():
|
||||
def mock_cloud_fixture(hass):
|
||||
"""Fixture for cloud component."""
|
||||
hass.loop.run_until_complete(mock_cloud(hass))
|
||||
return mock_cloud_prefs(hass)
|
||||
return mock_cloud_prefs(hass, {})
|
||||
|
||||
|
||||
@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"]
|
||||
|
||||
reqid = "5711642932632160983"
|
||||
|
Loading…
x
Reference in New Issue
Block a user