mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Use _attr_attribution in meteoclimatic (#61898)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
5b77fb9a0f
commit
b91124c030
@ -1,7 +1,6 @@
|
|||||||
"""Support for Meteoclimatic sensor."""
|
"""Support for Meteoclimatic sensor."""
|
||||||
from homeassistant.components.sensor import SensorEntity, SensorEntityDescription
|
from homeassistant.components.sensor import SensorEntity, SensorEntityDescription
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import ATTR_ATTRIBUTION
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.device_registry import DeviceEntryType
|
from homeassistant.helpers.device_registry import DeviceEntryType
|
||||||
from homeassistant.helpers.entity import DeviceInfo
|
from homeassistant.helpers.entity import DeviceInfo
|
||||||
@ -28,7 +27,7 @@ async def async_setup_entry(
|
|||||||
class MeteoclimaticSensor(CoordinatorEntity, SensorEntity):
|
class MeteoclimaticSensor(CoordinatorEntity, SensorEntity):
|
||||||
"""Representation of a Meteoclimatic sensor."""
|
"""Representation of a Meteoclimatic sensor."""
|
||||||
|
|
||||||
_attr_extra_state_attributes = {ATTR_ATTRIBUTION: ATTRIBUTION}
|
_attr_attribution = ATTRIBUTION
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, coordinator: DataUpdateCoordinator, description: SensorEntityDescription
|
self, coordinator: DataUpdateCoordinator, description: SensorEntityDescription
|
||||||
|
Loading…
x
Reference in New Issue
Block a user