mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
parent
3934f7bf3a
commit
16a885824d
@ -388,6 +388,18 @@ class SonosDevice(MediaPlayerDevice):
|
|||||||
"""Return the name of the device."""
|
"""Return the name of the device."""
|
||||||
return self._name
|
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
|
@property
|
||||||
@soco_coordinator
|
@soco_coordinator
|
||||||
def state(self):
|
def state(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user