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 committed 2016-02-04 02:12:33 +01:00
1 parent b19fbd8e72
commit 8cf5ca0ba8
2 files changed
+7 -2

No files matched your search

+2 -2
View File
@@ -255,8 +255,8 @@ class ZWaveDeviceEntity:
return object_id
@property
def state_attributes(self):
""" Returns the state attributes. """
def device_state_attributes(self):
""" Returns device specific state attributes. """
attrs = {
ATTR_NODE_ID: self._value.node.node_id,
}