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
|
@ -415,7 +415,7 @@ class SmartThingsAirConditioner(SmartThingsEntity, ClimateEntity):
|
|||
return self._device.status.temperature
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""
|
||||
Return device specific state attributes.
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ class SmartThingsCover(SmartThingsEntity, CoverEntity):
|
|||
return self._device_class
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Get additional state attributes."""
|
||||
return self._state_attrs
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ class SmartThingsLock(SmartThingsEntity, LockEntity):
|
|||
return self._device.status.lock == ST_STATE_LOCKED
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return device specific state attributes."""
|
||||
state_attrs = {}
|
||||
status = self._device.status.attributes[Attribute.lock]
|
||||
|
|
|
@ -24,7 +24,7 @@ class SmartThingsScene(Scene):
|
|||
await self._scene.execute()
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Get attributes about the state."""
|
||||
return {
|
||||
"icon": self._scene.icon,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue