mirror of
https://github.com/home-assistant/core.git
synced 2025-08-17 11:31:39 +02:00
Add configuration_url to Forecast.Solar integration (#60384)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user