parent
3934f7bf3a
commit
16a885824d
1 changed files with 12 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue