Update integrations j-o to override extra_state_attributes() (#47758)

This commit is contained in:
Erik Montnemery 2021-03-11 20:11:25 +01:00 committed by GitHub
parent 1095905f8c
commit 14a59d290a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
110 changed files with 150 additions and 150 deletions

View file

@ -308,9 +308,9 @@ class ZWaveClimateEntity(ZWaveDeviceEntity, ClimateEntity):
self.values.mode.send_value(preset_mode_value)
@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the optional state attributes."""
data = super().device_state_attributes
data = super().extra_state_attributes
if self.values.fan_action:
data[ATTR_FAN_ACTION] = self.values.fan_action.value
if self.values.valve_position: