This commit is contained in:
Paulus Schoutsen committed 2020-08-28 15:33:08 +00:00
1 parent 4b5d0915a9
commit d9f3bdea53
3 files changed
+13 -4

No files matched your search

+7 -2
View File
@@ -330,11 +330,16 @@ async def test_reloading(aioclient_mock, hass, hass_client):
assert body == "hello world"
yaml_path = path.join(
_get_fixtures_base_path(), "fixtures", "generic/configuration.yaml",
_get_fixtures_base_path(),
"fixtures",
"generic/configuration.yaml",
)
with patch.object(hass_config, "YAML_CONFIG_FILE", yaml_path):
await hass.services.async_call(
DOMAIN, SERVICE_RELOAD, {}, blocking=True,
DOMAIN,
SERVICE_RELOAD,
{},
blocking=True,
)
await hass.async_block_till_done()