Update integrations f-i to override extra_state_attributes() (#47757)

This commit is contained in:
Erik Montnemery 2021-03-11 16:57:47 +01:00 committed by GitHub
parent 6c084ae6ce
commit af4d06b12e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
119 changed files with 165 additions and 165 deletions

View file

@ -58,9 +58,9 @@ class HueLightLevel(GenericHueGaugeSensorEntity):
return round(float(10 ** ((self.sensor.lightlevel - 1) / 10000)), 2)
@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the device state attributes."""
attributes = super().device_state_attributes
attributes = super().extra_state_attributes
attributes.update(
{
"lightlevel": self.sensor.lightlevel,