mirror of
https://github.com/jdejaegh/irm-kmi-ha.git
synced 2025-06-27 03:35:56 +02:00
Add data attribution
This commit is contained in:
parent
9e07e18e85
commit
ff5f2f8adc
4 changed files with 7 additions and 0 deletions
|
@ -25,6 +25,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
|
||||||
class IrmKmiWarning(CoordinatorEntity, BinarySensorEntity):
|
class IrmKmiWarning(CoordinatorEntity, BinarySensorEntity):
|
||||||
"""Representation of a weather warning binary sensor"""
|
"""Representation of a weather warning binary sensor"""
|
||||||
|
|
||||||
|
_attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be"
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
coordinator: IrmKmiCoordinator,
|
coordinator: IrmKmiCoordinator,
|
||||||
entry: ConfigEntry
|
entry: ConfigEntry
|
||||||
|
|
|
@ -25,6 +25,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
|
||||||
class IrmKmiRadar(CoordinatorEntity, Camera):
|
class IrmKmiRadar(CoordinatorEntity, Camera):
|
||||||
"""Representation of a radar view camera."""
|
"""Representation of a radar view camera."""
|
||||||
|
|
||||||
|
_attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be"
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
coordinator: IrmKmiCoordinator,
|
coordinator: IrmKmiCoordinator,
|
||||||
entry: ConfigEntry,
|
entry: ConfigEntry,
|
||||||
|
|
|
@ -28,6 +28,7 @@ class IrmKmiPollen(CoordinatorEntity, SensorEntity):
|
||||||
"""Representation of a pollen sensor"""
|
"""Representation of a pollen sensor"""
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_device_class = SensorDeviceClass.ENUM
|
_attr_device_class = SensorDeviceClass.ENUM
|
||||||
|
_attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be"
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
coordinator: IrmKmiCoordinator,
|
coordinator: IrmKmiCoordinator,
|
||||||
|
@ -55,6 +56,7 @@ class IrmKmiNextWarning(CoordinatorEntity, SensorEntity):
|
||||||
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_device_class = SensorDeviceClass.TIMESTAMP
|
_attr_device_class = SensorDeviceClass.TIMESTAMP
|
||||||
|
_attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be"
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
coordinator: IrmKmiCoordinator,
|
coordinator: IrmKmiCoordinator,
|
||||||
|
|
|
@ -49,6 +49,7 @@ def add_services() -> None:
|
||||||
|
|
||||||
|
|
||||||
class IrmKmiWeather(CoordinatorEntity, WeatherEntity):
|
class IrmKmiWeather(CoordinatorEntity, WeatherEntity):
|
||||||
|
_attr_attribution = "Weather data from the Royal Meteorological Institute of Belgium meteo.be"
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
coordinator: IrmKmiCoordinator,
|
coordinator: IrmKmiCoordinator,
|
||||||
|
|
Loading…
Add table
Reference in a new issue