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:
4 files changed
+6
-9
No files matched your search
@@ -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"})
|
||||
Reference in new issue
Block a user