Add service configuration URL to Spotify (#57701)

This commit is contained in:
Franck Nijhof 2021-10-14 22:42:34 +02:00 committed by GitHub
parent 5382ab8562
commit 93e15ef88c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: