mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +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:
parent
b19fbd8e72
commit
8cf5ca0ba8
@ -99,6 +99,11 @@ class ZWaveSensor(ZWaveDeviceEntity, Entity):
|
|||||||
""" Returns the state of the sensor. """
|
""" Returns the state of the sensor. """
|
||||||
return self._value.data
|
return self._value.data
|
||||||
|
|
||||||
|
@property
|
||||||
|
def state_attributes(self):
|
||||||
|
""" Returns optional state attributes. """
|
||||||
|
return self.device_state_attributes
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
return self._value.units
|
return self._value.units
|
||||||
|
@ -255,8 +255,8 @@ class ZWaveDeviceEntity:
|
|||||||
return object_id
|
return object_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state_attributes(self):
|
def device_state_attributes(self):
|
||||||
""" Returns the state attributes. """
|
""" Returns device specific state attributes. """
|
||||||
attrs = {
|
attrs = {
|
||||||
ATTR_NODE_ID: self._value.node.node_id,
|
ATTR_NODE_ID: self._value.node.node_id,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user