mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Add service configuration URL to Spotify (#57701)
This commit is contained in:
parent
5382ab8562
commit
93e15ef88c
@ -262,13 +262,14 @@ class SpotifyMediaPlayer(MediaPlayerEntity):
|
||||
product = self._me["product"]
|
||||
model = f"Spotify {product}"
|
||||
|
||||
return {
|
||||
"identifiers": {(DOMAIN, self._id)},
|
||||
"manufacturer": "Spotify AB",
|
||||
"model": model,
|
||||
"name": self._name,
|
||||
"entry_type": "service",
|
||||
}
|
||||
return DeviceInfo(
|
||||
identifiers={(DOMAIN, self._id)},
|
||||
manufacturer="Spotify AB",
|
||||
model=model,
|
||||
name=self._name,
|
||||
entry_type="service",
|
||||
configuration_url="https://open.spotify.com",
|
||||
)
|
||||
|
||||
@property
|
||||
def state(self) -> str | None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user