Commit Graph

8 Commits (72d706ab5259e6bd7f6af08255eba165d3ddcd69)

Author SHA1 Message Date
epenet 5c8e8e4860
Use new media player enums () 2022-09-12 20:06:27 +02:00
Franck Nijhof acf2033734
Use DataUpdateCoordinator for Spotify devices () 2022-02-11 18:04:49 +01:00
Franck Nijhof c6f3c5da79
Type Spotify hass data () 2022-02-10 12:38:33 -08:00
Franck Nijhof 8a09303c98
Extract Spotify media browsing into a module () 2022-02-09 22:03:15 +01:00
Paulus Schoutsen a371f8f788
Allow browsing the Spotify media player in Sonos () 2022-01-25 12:43:43 -08:00
cgtobi c8d49a8adf
Add Spotify media browser capability ()
Co-authored-by: Tobias Sauerwein <cgtobi@gmail.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-08-27 17:00:36 +02:00
Quentame 1855c91988
Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const ()
* Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const

* Fix pylint

* Use in tests

* Search for "client_id"

* Fix tests

* Fix test

* Fix test
2020-05-30 17:27:20 +02:00
Franck Nijhof 7e4b9adc3d
Rewrite of Spotify integration ()
* Rewrite of Spotify integration

* Update homeassistant/components/spotify/config_flow.py

Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>

* Remove configurator dependency

* Strip whitespace from device model in case Spotify product is missing

* Ensure domain dict exists in hass data on setup entry

* Simply config validation for client id and secret

* Abort flow on any exception from spotipy

* Add tests for config flow

* Gen requirements all

* Add test package __init__

* Remove Spotify from coveragerc

* Made alias handling more robuust

* Fix supported_features for Spotify free and open accounts

* Improve error message in the logs

* Re-implement Spotify media_player

* Change media content type when play a playlist

* Process review suggestions

* Move Spotify init, static current user and supported_features

* Remove unneeded me call

* Remove playlist content type due to frontend issues

* Improve playlist handling, when context is missing

* Handle entity disabled correctly

* Handle being offline/unavailable correctly

* Bump Spotipy to 2.7.1

* Update coverage RC, mark integration silver

* Remove URI limitation, lib supports all Spotify URI's now

* Final cleanup

* Addresses Pylint error

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-01-24 18:47:22 +01:00