Clean up state_attributes vs device_state_attributes
This commit is contained in:
1 parent
681b84e1bd
commit
f08b77dc4c
23 files changed
+66
-138
No files matched your search
@@ -111,11 +111,6 @@ class ZWaveSensor(ZWaveDeviceEntity, Entity):
|
||||
""" Returns the state of the sensor. """
|
||||
return self._value.data
|
||||
|
||||
@property
|
||||
def state_attributes(self):
|
||||
""" Returns optional state attributes. """
|
||||
return self.device_state_attributes
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
return self._value.units
|
||||
|
||||
Reference in new issue
Block a user