Update integrations j-o to override extra_state_attributes() (#47758)
This commit is contained in:
parent
1095905f8c
commit
14a59d290a
110 changed files with 150 additions and 150 deletions
|
@ -88,7 +88,7 @@ class MotionBatterySensor(CoordinatorEntity, Entity):
|
|||
return self._blind.battery_level
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return device specific state attributes."""
|
||||
return {ATTR_BATTERY_VOLTAGE: self._blind.battery_voltage}
|
||||
|
||||
|
@ -134,7 +134,7 @@ class MotionTDBUBatterySensor(MotionBatterySensor):
|
|||
return self._blind.battery_level[self._motor[0]]
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return device specific state attributes."""
|
||||
attributes = {}
|
||||
if self._blind.battery_voltage is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue