mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +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"]
|
product = self._me["product"]
|
||||||
model = f"Spotify {product}"
|
model = f"Spotify {product}"
|
||||||
|
|
||||||
return {
|
return DeviceInfo(
|
||||||
"identifiers": {(DOMAIN, self._id)},
|
identifiers={(DOMAIN, self._id)},
|
||||||
"manufacturer": "Spotify AB",
|
manufacturer="Spotify AB",
|
||||||
"model": model,
|
model=model,
|
||||||
"name": self._name,
|
name=self._name,
|
||||||
"entry_type": "service",
|
entry_type="service",
|
||||||
}
|
configuration_url="https://open.spotify.com",
|
||||||
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self) -> str | None:
|
def state(self) -> str | None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user