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
|
@ -164,7 +164,7 @@ class SnapcastGroupDevice(MediaPlayerEntity):
|
|||
return list(self._group.streams_by_name().keys())
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
name = f"{self._group.friendly_name} {GROUP_SUFFIX}"
|
||||
return {"friendly_name": name}
|
||||
|
@ -261,7 +261,7 @@ class SnapcastClientDevice(MediaPlayerEntity):
|
|||
return STATE_OFF
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
state_attrs = {}
|
||||
if self.latency is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue