Skip to content

Commit beab0c2

Browse files
SaccaSacca
authored andcommitted
Removed state attribution
1 parent fe2bcec commit beab0c2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

custom_components/uhoo/sensor.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from homeassistant.const import ATTR_ATTRIBUTION, ATTR_DEVICE_CLASS, TEMP_CELSIUS, TEMP_FAHRENHEIT
1+
from homeassistant.const import ATTR_DEVICE_CLASS, TEMP_CELSIUS, TEMP_FAHRENHEIT
22
from homeassistant.helpers.entity import Entity
33

44
from . import UhooEntity
@@ -8,7 +8,6 @@
88
ATTR_LABEL,
99
ATTR_UNIQUE_ID,
1010
ATTR_UNIT,
11-
ATTRIBUTION,
1211
DATA_COORDINATOR,
1312
DOMAIN,
1413
SENSOR_TYPES,
@@ -67,8 +66,3 @@ def unit_of_measurement(self):
6766
def unique_id(self):
6867
"""Return a unique id."""
6968
return f"{self.serial_number}-{SENSOR_TYPES[self.sensor_type][ATTR_UNIQUE_ID]}"
70-
71-
@property
72-
def device_state_attributes(self):
73-
"""Return device attributes."""
74-
return {ATTR_ATTRIBUTION: ATTRIBUTION}

0 commit comments

Comments
 (0)