mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add configuration_url to Forecast.Solar integration (#60384)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
c8781bbe3b
commit
7019c524fa
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user