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"] 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: