From 30c3174498bc05f271e241813c33d41cdce83579 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 10 Mar 2024 22:50:09 -1000 Subject: [PATCH] Fix CoreState in cloud google assistant tests (#113045) --- tests/components/cloud/test_google_config.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/components/cloud/test_google_config.py b/tests/components/cloud/test_google_config.py index f10a3cdbac5..bde2d85de46 100644 --- a/tests/components/cloud/test_google_config.py +++ b/tests/components/cloud/test_google_config.py @@ -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", {})