Add configuration_url to Forecast.Solar integration (#60384)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Matt 2021-12-02 15:36:41 +00:00 committed by GitHub
parent c8781bbe3b
commit 7019c524fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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)