fix black on generic_thermostat tests (#39350)

This commit is contained in:
Chris Talkington 2020-08-28 00:24:11 -05:00 committed by GitHub
parent f914625b8a
commit 98db0a2d2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1275,11 +1275,16 @@ async def test_reload(hass):
assert hass.states.get("climate.test") is not None
yaml_path = path.join(
_get_fixtures_base_path(), "fixtures", "generic_thermostat/configuration.yaml",
_get_fixtures_base_path(),
"fixtures",
"generic_thermostat/configuration.yaml",
)
with patch.object(hass_config, "YAML_CONFIG_FILE", yaml_path):
await hass.services.async_call(
GENERIC_THERMOSTAT_DOMAIN, SERVICE_RELOAD, {}, blocking=True,
GENERIC_THERMOSTAT_DOMAIN,
SERVICE_RELOAD,
{},
blocking=True,
)
await hass.async_block_till_done()