mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix CoreState in cloud google assistant tests (#113045)
This commit is contained in:
parent
fd8ee6c857
commit
30c3174498
@ -510,7 +510,7 @@ async def test_google_config_migrate_expose_entity_prefs(
|
||||
google_settings_version: int,
|
||||
) -> None:
|
||||
"""Test migrating Google entity config."""
|
||||
hass.set_state(CoreState.starting)
|
||||
hass.set_state(CoreState.not_running)
|
||||
|
||||
assert await async_setup_component(hass, "homeassistant", {})
|
||||
hass.states.async_set("light.state_only", "on")
|
||||
@ -623,7 +623,7 @@ async def test_google_config_migrate_expose_entity_prefs_v2_no_exposed(
|
||||
entity_registry: er.EntityRegistry,
|
||||
) -> None:
|
||||
"""Test migrating Google entity config from v2 to v3 when no entity is exposed."""
|
||||
hass.set_state(CoreState.starting)
|
||||
hass.set_state(CoreState.not_running)
|
||||
|
||||
assert await async_setup_component(hass, "homeassistant", {})
|
||||
hass.states.async_set("light.state_only", "on")
|
||||
@ -670,7 +670,7 @@ async def test_google_config_migrate_expose_entity_prefs_v2_exposed(
|
||||
entity_registry: er.EntityRegistry,
|
||||
) -> None:
|
||||
"""Test migrating Google entity config from v2 to v3 when an entity is exposed."""
|
||||
hass.set_state(CoreState.starting)
|
||||
hass.set_state(CoreState.not_running)
|
||||
|
||||
assert await async_setup_component(hass, "homeassistant", {})
|
||||
hass.states.async_set("light.state_only", "on")
|
||||
@ -717,7 +717,7 @@ async def test_google_config_migrate_expose_entity_prefs_default_none(
|
||||
entity_registry: er.EntityRegistry,
|
||||
) -> None:
|
||||
"""Test migrating Google entity config."""
|
||||
hass.set_state(CoreState.starting)
|
||||
hass.set_state(CoreState.not_running)
|
||||
|
||||
assert await async_setup_component(hass, "homeassistant", {})
|
||||
entity_default = entity_registry.async_get_or_create(
|
||||
@ -754,7 +754,7 @@ async def test_google_config_migrate_expose_entity_prefs_default(
|
||||
entity_registry: er.EntityRegistry,
|
||||
) -> None:
|
||||
"""Test migrating Google entity config."""
|
||||
hass.set_state(CoreState.starting)
|
||||
hass.set_state(CoreState.not_running)
|
||||
|
||||
assert await async_setup_component(hass, "homeassistant", {})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user