Update integrations p-s to override extra_state_attributes() (#47759)
This commit is contained in:
parent
1fc8e32d86
commit
14ff6d4d1f
106 changed files with 144 additions and 146 deletions
|
@ -163,7 +163,7 @@ class SenseActiveSensor(Entity):
|
|||
return POWER_WATT
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
return {ATTR_ATTRIBUTION: ATTRIBUTION}
|
||||
|
||||
|
@ -247,7 +247,7 @@ class SenseVoltageSensor(Entity):
|
|||
return VOLT
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
return {ATTR_ATTRIBUTION: ATTRIBUTION}
|
||||
|
||||
|
@ -333,7 +333,7 @@ class SenseTrendsSensor(Entity):
|
|||
return self._unit_of_measurement
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
return {ATTR_ATTRIBUTION: ATTRIBUTION}
|
||||
|
||||
|
@ -415,7 +415,7 @@ class SenseEnergyDevice(Entity):
|
|||
return POWER_WATT
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
return {ATTR_ATTRIBUTION: ATTRIBUTION}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue