1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-27 12:14:35 +01:00

Fix unhandled exceptions for config, default_config, harmony (#33731)

* replaced MagicMock with CoroutineMock to avoid exception

* added conversion to str so mock returns unique-id that doesn't throw json exception

* added non-empty config since hass throws exception when config is empty
This commit is contained in:
Ziv
2020-04-06 14:36:49 +03:00
committed by GitHub
parent 98a2efcbab
commit cedf7e3945
4 changed files with 6 additions and 9 deletions

View File

@@ -15,4 +15,4 @@ def recorder_url_mock():
async def test_setup(hass):
"""Test setup."""
assert await async_setup_component(hass, "default_config", {})
assert await async_setup_component(hass, "default_config", {"foo": "bar"})