Don't use storage collection helper in ExposedEntities (#92396)
* Don't use storage collection helper in ExposedEntities * Fix tests
This commit is contained in:
parent
7aa94f97c0
commit
4860a8d1e8
31 changed files with 248 additions and 299 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue