mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
parent
3934f7bf3a
commit
16a885824d
@ -388,6 +388,18 @@ class SonosDevice(MediaPlayerDevice):
|
||||
"""Return the name of the device."""
|
||||
return self._name
|
||||
|
||||
@property
|
||||
def device_info(self):
|
||||
"""Return information about the device."""
|
||||
return {
|
||||
'identifiers': {
|
||||
(SONOS_DOMAIN, self._unique_id)
|
||||
},
|
||||
'name': self._name,
|
||||
'model': self._model.replace("Sonos ", ""),
|
||||
'manufacturer': 'Sonos',
|
||||
}
|
||||
|
||||
@property
|
||||
@soco_coordinator
|
||||
def state(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user