1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Regression: The device specific attributes of ZWave devices got lost.

Light and ZWaveDeviceEntity both have overwritten the property state_attributes
This includes the device specific attributes in the state_attributes again
This commit is contained in:
Lukas Hetzenecker
2016-02-04 02:12:33 +01:00
parent b19fbd8e72
commit 8cf5ca0ba8
2 changed files with 7 additions and 2 deletions

View File

@@ -99,6 +99,11 @@ 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