From 3d5432b799aa576a18ed9f5cbc9557b84a881b3f Mon Sep 17 00:00:00 2001 From: Matt <5032824+mdawsonuk@users.noreply.github.com> Date: Fri, 26 Nov 2021 10:15:03 +0000 Subject: [PATCH] Add configuration_url to AccuWeather integration (#60381) --- homeassistant/components/accuweather/weather.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/accuweather/weather.py b/homeassistant/components/accuweather/weather.py index a17c1a090b1..c97cc44aea3 100644 --- a/homeassistant/components/accuweather/weather.py +++ b/homeassistant/components/accuweather/weather.py @@ -73,6 +73,12 @@ class AccuWeatherEntity(CoordinatorEntity, WeatherEntity): identifiers={(DOMAIN, coordinator.location_key)}, manufacturer=MANUFACTURER, name=NAME, + # You don't need to provide specific details for the URL, + # so passing in _ characters is fine if the location key + # is correct + configuration_url="http://accuweather.com/en/" + f"_/_/{coordinator.location_key}/" + f"weather-forecast/{coordinator.location_key}/", ) @property