1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Don't use storage collection helper in ExposedEntities (#92396)

* Don't use storage collection helper in ExposedEntities

* Fix tests
This commit is contained in:
Erik Montnemery
2023-05-03 12:39:22 +02:00
committed by GitHub
parent 7aa94f97c0
commit 4860a8d1e8
31 changed files with 248 additions and 299 deletions

View File

@@ -257,9 +257,7 @@ async def test_should_expose(hass: HomeAssistant) -> None:
await hass.async_block_till_done()
assert (
await config.should_expose(
State(DOMAIN + ".mock", "mock", {"view": "not None"})
)
config.should_expose(State(DOMAIN + ".mock", "mock", {"view": "not None"}))
is False
)
@@ -267,10 +265,7 @@ async def test_should_expose(hass: HomeAssistant) -> None:
# Wait for google_assistant.helpers.async_initialize.sync_google to be called
await hass.async_block_till_done()
assert (
await config.should_expose(State(CLOUD_NEVER_EXPOSED_ENTITIES[0], "mock"))
is False
)
assert config.should_expose(State(CLOUD_NEVER_EXPOSED_ENTITIES[0], "mock")) is False
async def test_missing_service_account(hass: HomeAssistant) -> None: