mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Black
This commit is contained in:
parent
4b5d0915a9
commit
d9f3bdea53
@ -25,7 +25,9 @@ async def test_alexa_config_expose_entity_prefs(hass, cloud_prefs):
|
||||
entity_conf["should_expose"] = None
|
||||
assert conf.should_expose("light.kitchen")
|
||||
|
||||
await cloud_prefs.async_update(alexa_default_expose=["sensor"],)
|
||||
await cloud_prefs.async_update(
|
||||
alexa_default_expose=["sensor"],
|
||||
)
|
||||
assert not conf.should_expose("light.kitchen")
|
||||
|
||||
|
||||
|
@ -187,5 +187,7 @@ async def test_google_config_expose_entity_prefs(mock_conf, cloud_prefs):
|
||||
entity_conf["should_expose"] = None
|
||||
assert mock_conf.should_expose(state)
|
||||
|
||||
await cloud_prefs.async_update(google_default_expose=["sensor"],)
|
||||
await cloud_prefs.async_update(
|
||||
google_default_expose=["sensor"],
|
||||
)
|
||||
assert not mock_conf.should_expose(state)
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user