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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user