mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Fix attribution (#27815)
This commit is contained in:
parent
dcdcfdd376
commit
86a4be1636
@ -1,5 +1,6 @@
|
|||||||
"""Support for the Airly sensor service."""
|
"""Support for the Airly sensor service."""
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
ATTR_ATTRIBUTION,
|
||||||
ATTR_DEVICE_CLASS,
|
ATTR_DEVICE_CLASS,
|
||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
DEVICE_CLASS_HUMIDITY,
|
DEVICE_CLASS_HUMIDITY,
|
||||||
@ -93,7 +94,7 @@ class AirlySensor(Entity):
|
|||||||
self._state = None
|
self._state = None
|
||||||
self._icon = None
|
self._icon = None
|
||||||
self._unit_of_measurement = None
|
self._unit_of_measurement = None
|
||||||
self._attrs = {}
|
self._attrs = {ATTR_ATTRIBUTION: ATTRIBUTION}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
@ -136,11 +137,6 @@ class AirlySensor(Entity):
|
|||||||
"""Return the unit the value is expressed in."""
|
"""Return the unit the value is expressed in."""
|
||||||
return SENSOR_TYPES[self.kind][ATTR_UNIT]
|
return SENSOR_TYPES[self.kind][ATTR_UNIT]
|
||||||
|
|
||||||
@property
|
|
||||||
def attribution(self):
|
|
||||||
"""Return the attribution."""
|
|
||||||
return ATTRIBUTION
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def available(self):
|
def available(self):
|
||||||
"""Return True if entity is available."""
|
"""Return True if entity is available."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user