From 833d271eb3015dd28f3cccce58fd8875f60b4b88 Mon Sep 17 00:00:00 2001 From: Tobias Sauerwein Date: Sat, 29 Oct 2022 23:50:34 +0200 Subject: [PATCH] Add missing Netatmo config url for public weather (#81220) Add missing config url for public weather --- homeassistant/components/netatmo/const.py | 1 + homeassistant/components/netatmo/sensor.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/homeassistant/components/netatmo/const.py b/homeassistant/components/netatmo/const.py index e93d0c91a07..21f821040dd 100644 --- a/homeassistant/components/netatmo/const.py +++ b/homeassistant/components/netatmo/const.py @@ -21,6 +21,7 @@ CONF_URL_SECURITY = "https://home.netatmo.com/security" CONF_URL_ENERGY = "https://my.netatmo.com/app/energy" CONF_URL_WEATHER = "https://my.netatmo.com/app/weather" CONF_URL_CONTROL = "https://home.netatmo.com/control" +CONF_URL_PUBLIC_WEATHER = "https://weathermap.netatmo.com/" AUTH = "netatmo_auth" CONF_PUBLIC = "public_sensor_config" diff --git a/homeassistant/components/netatmo/sensor.py b/homeassistant/components/netatmo/sensor.py index 82f6c95b699..1fed7cf5e0e 100644 --- a/homeassistant/components/netatmo/sensor.py +++ b/homeassistant/components/netatmo/sensor.py @@ -39,6 +39,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback from .const import ( CONF_URL_ENERGY, + CONF_URL_PUBLIC_WEATHER, CONF_URL_WEATHER, CONF_WEATHER_AREAS, DATA_HANDLER, @@ -702,6 +703,7 @@ class NetatmoPublicSensor(NetatmoBase, SensorEntity): self._device_name = f"{self._area_name}" self._attr_name = f"{description.name}" self._show_on_map = area.show_on_map + self._config_url = CONF_URL_PUBLIC_WEATHER self._attr_unique_id = ( f"{self._device_name.replace(' ', '-')}-{description.key}" )