Add configuration_url to AccuWeather integration (#60381)

This commit is contained in:
Matt 2021-11-26 10:15:03 +00:00 committed by GitHub
parent 88068fa97f
commit 3d5432b799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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