Add data attribution

This commit is contained in:
Jules 2024-05-26 20:22:20 +02:00
parent 9e07e18e85
commit ff5f2f8adc
Signed by: jdejaegh
GPG key ID: 99D6D184CA66933A
4 changed files with 7 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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