From 1f35975f65faeea5c8331d6b647063d36fc00a3c Mon Sep 17 00:00:00 2001 From: EetuPelkonen Date: Fri, 27 Nov 2026 11:54:36 +0200 Subject: [PATCH] Rename Foreca integration to Foreca Weather (#194588) --- homeassistant/components/foreca/config_flow.py | 6 +++--- homeassistant/components/foreca/manifest.json | 2 +- homeassistant/generated/integrations.json | 2 +- tests/components/foreca/conftest.py | 2 +- tests/components/foreca/test_config_flow.py | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/foreca/config_flow.py b/homeassistant/components/foreca/config_flow.py index 0dacf9b0a046..2a2122456968 100644 --- a/homeassistant/components/foreca/config_flow.py +++ b/homeassistant/components/foreca/config_flow.py @@ -77,7 +77,7 @@ class ForecaConfigFlow(ConfigFlow, domain=DOMAIN): ) if not errors: return self.async_create_entry( - title="Foreca", + title="Foreca Weather", data={CONF_API_KEY: user_input[CONF_API_KEY]}, subentries=[ ConfigSubentryData( @@ -86,7 +86,7 @@ class ForecaConfigFlow(ConfigFlow, domain=DOMAIN): CONF_LONGITUDE: self.hass.config.longitude, }, subentry_type=SUBENTRY_TYPE_LOCATION, - title=(info.name if info else None) or "Foreca", + title=(info.name if info else None) or "Foreca Weather", unique_id=( f"{self.hass.config.latitude}-" f"{self.hass.config.longitude}" @@ -183,7 +183,7 @@ class LocationSubentryFlowHandler(ConfigSubentryFlow): ) if not errors: return self.async_create_entry( - title=(info.name if info else None) or "Foreca", + title=(info.name if info else None) or "Foreca Weather", data={CONF_LATITUDE: latitude, CONF_LONGITUDE: longitude}, unique_id=unique, ) diff --git a/homeassistant/components/foreca/manifest.json b/homeassistant/components/foreca/manifest.json index 493b0518bf94..e26c7ba6d87b 100644 --- a/homeassistant/components/foreca/manifest.json +++ b/homeassistant/components/foreca/manifest.json @@ -1,6 +1,6 @@ { "domain": "foreca", - "name": "Foreca", + "name": "Foreca Weather", "categories": ["weather_alerts.forecasts"], "codeowners": ["@EetuPelkonen", "@hyvatti-foreca"], "config_flow": true, diff --git a/homeassistant/generated/integrations.json b/homeassistant/generated/integrations.json index 43e5ec495fbe..66bc3374eb9d 100644 --- a/homeassistant/generated/integrations.json +++ b/homeassistant/generated/integrations.json @@ -4801,7 +4801,7 @@ "iot_class": "cloud_polling" }, "foreca": { - "name": "Foreca", + "name": "Foreca Weather", "integration_type": "service", "categories": [ "weather_alerts.forecasts" diff --git a/tests/components/foreca/conftest.py b/tests/components/foreca/conftest.py index 7f771b9bf9ec..beeb58498dcb 100644 --- a/tests/components/foreca/conftest.py +++ b/tests/components/foreca/conftest.py @@ -302,7 +302,7 @@ def mock_config_entry() -> MockConfigEntry: """Return a mock config entry with one location subentry.""" return MockConfigEntry( domain=DOMAIN, - title="Foreca", + title="Foreca Weather", entry_id="01JZ4Q1F0RECA0000000000000", data={CONF_API_KEY: "test-key"}, subentries_data=[ diff --git a/tests/components/foreca/test_config_flow.py b/tests/components/foreca/test_config_flow.py index 14a27ccf4cce..b8c31a98f82b 100644 --- a/tests/components/foreca/test_config_flow.py +++ b/tests/components/foreca/test_config_flow.py @@ -44,7 +44,7 @@ async def test_full_flow(hass: HomeAssistant) -> None: result["flow_id"], USER_INPUT ) assert result["type"] is FlowResultType.CREATE_ENTRY - assert result["title"] == "Foreca" + assert result["title"] == "Foreca Weather" assert result["data"] == {CONF_API_KEY: "test-key"} # A new entry starts with the Home Assistant home location, so setting the # integration up produces a weather entity without a second step. @@ -185,7 +185,7 @@ async def test_entry_title_falls_back_without_location_name( result["flow_id"], SECOND_LOCATION_INPUT ) assert result["type"] is FlowResultType.CREATE_ENTRY - assert result["title"] == "Foreca" + assert result["title"] == "Foreca Weather" @pytest.mark.usefixtures("mock_setup_entry", "mock_foreca_client")