Black
This commit is contained in:
1 parent
4b5d0915a9
commit
d9f3bdea53
3 files changed
+13
-4
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user