mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 04:03:49 +01:00
Use aiohasupervisor for all calls from hassio/coordinator (#164413)
Co-authored-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
@@ -359,10 +359,13 @@ async def test_send_usage_with_supervisor(
|
||||
"healthy": True,
|
||||
"supported": True,
|
||||
"arch": "amd64",
|
||||
"addons": [{"slug": "test_addon"}],
|
||||
}
|
||||
),
|
||||
),
|
||||
patch(
|
||||
"homeassistant.components.hassio.get_addons_info",
|
||||
side_effect=Mock(return_value={"test_addon": {}}),
|
||||
),
|
||||
patch(
|
||||
"homeassistant.components.hassio.get_os_info",
|
||||
side_effect=Mock(return_value={}),
|
||||
@@ -578,10 +581,13 @@ async def test_send_statistics_with_supervisor(
|
||||
"healthy": True,
|
||||
"supported": True,
|
||||
"arch": "amd64",
|
||||
"addons": [{"slug": "test_addon"}],
|
||||
}
|
||||
),
|
||||
),
|
||||
patch(
|
||||
"homeassistant.components.hassio.get_addons_info",
|
||||
side_effect=Mock(return_value={"test_addon": {}}),
|
||||
),
|
||||
patch(
|
||||
"homeassistant.components.hassio.get_os_info",
|
||||
side_effect=Mock(return_value={}),
|
||||
|
||||
Reference in New Issue
Block a user