diff --git a/homeassistant/components/forecast_solar/sensor.py b/homeassistant/components/forecast_solar/sensor.py index 4efad600d66..6088da6e645 100644 --- a/homeassistant/components/forecast_solar/sensor.py +++ b/homeassistant/components/forecast_solar/sensor.py @@ -59,6 +59,7 @@ class ForecastSolarSensorEntity(CoordinatorEntity, SensorEntity): manufacturer="Forecast.Solar", model=coordinator.data.account_type.value, name="Solar Production Forecast", + configuration_url="https://forecast.solar", ) @property diff --git a/tests/components/forecast_solar/test_config_flow.py b/tests/components/forecast_solar/test_config_flow.py index ac950d38b51..d175be986ca 100644 --- a/tests/components/forecast_solar/test_config_flow.py +++ b/tests/components/forecast_solar/test_config_flow.py @@ -61,6 +61,11 @@ async def test_options_flow( ) -> None: """Test config flow options.""" mock_config_entry.add_to_hass(hass) + with patch( + "homeassistant.components.forecast_solar.async_setup_entry", return_value=True + ): + await hass.config_entries.async_setup(mock_config_entry.entry_id) + await hass.async_block_till_done() result = await hass.config_entries.options.async_init(mock_config_entry.entry_id)