Fix dangerous-default-value warnings in cloud tests (#119585)

This commit is contained in:
epenet 2024-06-13 10:30:44 +02:00 committed by GitHub
parent 55f8a36572
commit d211af75ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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

View File

@ -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"