Fix attribution (#27815)

This commit is contained in:
Maciej Bieniek 2019-10-18 02:22:40 +02:00 committed by Paulus Schoutsen
parent dcdcfdd376
commit 86a4be1636

View File

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