Update integrations t-z to override extra_state_attributes() (#47760)

This commit is contained in:
Erik Montnemery 2021-03-11 20:16:26 +01:00 committed by GitHub
parent 14a59d290a
commit 1fc8e32d86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
127 changed files with 218 additions and 223 deletions

View file

@ -99,7 +99,7 @@ class WinkThermostat(WinkDevice, ClimateEntity):
return TEMP_CELSIUS
@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the optional device state attributes."""
data = {}
if self.external_temperature is not None:
@ -396,7 +396,7 @@ class WinkAC(WinkDevice, ClimateEntity):
return TEMP_CELSIUS
@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the optional device state attributes."""
data = {}
data[ATTR_TOTAL_CONSUMPTION] = self.wink.total_consumption()