ZWave: Fix missing battery_level, node_id and location (#4422)

* Fix missing battery_level, node_id and location

* use super instead of object
pull/4458/head
John Arild Berentsen 2016-11-18 21:42:30 +01:00 committed by GitHub
parent 36b338051b
commit 43a93fb345
1 changed files with 5 additions and 4 deletions

View File

@ -22,7 +22,8 @@ DEFAULT_NAME = 'ZWave Climate'
REMOTEC = 0x5254
REMOTEC_ZXT_120 = 0x8377
REMOTEC_ZXT_120_THERMOSTAT = (REMOTEC, REMOTEC_ZXT_120)
ATTR_OPERATING_STATE = 'operating_state'
ATTR_FAN_STATE = 'fan_state'
WORKAROUND_ZXT_120 = 'zxt_120'
@ -269,9 +270,9 @@ class ZWaveClimate(ZWaveDeviceEntity, ClimateDevice):
@property
def device_state_attributes(self):
"""Return the device specific state attributes."""
data = {}
data = super().device_state_attributes
if self._operating_state:
data["operating_state"] = self._operating_state,
data[ATTR_OPERATING_STATE] = self._operating_state,
if self._fan_state:
data["fan_state"] = self._fan_state
data[ATTR_FAN_STATE] = self._fan_state
return data