diff --git a/custom_components/irm_kmi/binary_sensor.py b/custom_components/irm_kmi/binary_sensor.py index e911b13..616a767 100644 --- a/custom_components/irm_kmi/binary_sensor.py +++ b/custom_components/irm_kmi/binary_sensor.py @@ -25,6 +25,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e class IrmKmiWarning(CoordinatorEntity, BinarySensorEntity): """Representation of a weather warning binary sensor""" + _attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be" + def __init__(self, coordinator: IrmKmiCoordinator, entry: ConfigEntry diff --git a/custom_components/irm_kmi/camera.py b/custom_components/irm_kmi/camera.py index 6f5d2fd..a079dfa 100644 --- a/custom_components/irm_kmi/camera.py +++ b/custom_components/irm_kmi/camera.py @@ -25,6 +25,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e class IrmKmiRadar(CoordinatorEntity, Camera): """Representation of a radar view camera.""" + _attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be" + def __init__(self, coordinator: IrmKmiCoordinator, entry: ConfigEntry, diff --git a/custom_components/irm_kmi/sensor.py b/custom_components/irm_kmi/sensor.py index 9a9d131..b3ed85f 100644 --- a/custom_components/irm_kmi/sensor.py +++ b/custom_components/irm_kmi/sensor.py @@ -28,6 +28,7 @@ class IrmKmiPollen(CoordinatorEntity, SensorEntity): """Representation of a pollen sensor""" _attr_has_entity_name = True _attr_device_class = SensorDeviceClass.ENUM + _attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be" def __init__(self, coordinator: IrmKmiCoordinator, @@ -55,6 +56,7 @@ class IrmKmiNextWarning(CoordinatorEntity, SensorEntity): _attr_has_entity_name = True _attr_device_class = SensorDeviceClass.TIMESTAMP + _attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be" def __init__(self, coordinator: IrmKmiCoordinator, diff --git a/custom_components/irm_kmi/weather.py b/custom_components/irm_kmi/weather.py index 114700b..2aba43c 100644 --- a/custom_components/irm_kmi/weather.py +++ b/custom_components/irm_kmi/weather.py @@ -49,6 +49,7 @@ def add_services() -> None: class IrmKmiWeather(CoordinatorEntity, WeatherEntity): + _attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be" def __init__(self, coordinator: IrmKmiCoordinator,