Commit graph

31 commits

Author SHA1 Message Date
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
930a396712
Add empty line after module docstring [s] (#112704) 2024-03-08 14:33:51 +01:00
Erik Montnemery
65bacdddd8
Remove removed_yaml from the spotify integeration (#96261)
* Add removed_yaml issue to the homeassistant integration

* Remove issue translation from spotify

* Remove unrelated change

* Remove async_setup from spotify
2023-07-11 17:33:49 +02:00
Marc Mueller
fa7018bbec
Improve DataUpdateCoordinator typing in integrations (6) (#84741) 2022-12-29 09:07:23 +01:00
Erik Montnemery
c741d9d045
Update integrations to import issue_registry from helpers (#77305)
* Update integrations to import issue_registry from helpers

* Update tests
2022-08-25 15:33:05 +02:00
Franck Nijhof
c7ddc595ed
Add issue to repairs for removed Spotify YAML configuration (#75736)
* Add issue to repairs for removed Spotify YAML configuration

* Tweak message
2022-07-25 19:09:59 -04:00
J. Nick Koston
cd03c49fc2
Wait for config entry platform forwards (#73806) 2022-07-09 17:27:42 +02:00
Franck Nijhof
ba0b98ef32
Remove deprecated Spotify YAML configuration (#74604) 2022-07-08 08:30:01 +02:00
Allen Porter
2613c865f7
Add Spotify application_credentials platform (#71871) 2022-05-16 09:31:14 +02:00
Erik Montnemery
dbd26c7faf
Support browsing multiple Spotify accounts (#66256)
* Support browsing multiple Spotify accounts

* Fix rebase mistakes

* Address review comments

* Return root spotify node with config entries as children

* Add util to get spotify URI for media browser URL

* Only support browsing spotify with config entry specified
2022-02-14 13:59:11 +01:00
Franck Nijhof
ba83648d27
Fix Spotify session token refresh (#66386) 2022-02-12 17:13:32 +01:00
Franck Nijhof
acf2033734
Use DataUpdateCoordinator for Spotify devices (#66314) 2022-02-11 18:04:49 +01:00
Franck Nijhof
c6f3c5da79
Type Spotify hass data (#66285) 2022-02-10 12:38:33 -08:00
Franck Nijhof
8a09303c98
Extract Spotify media browsing into a module (#66175) 2022-02-09 22:03:15 +01:00
Franck Nijhof
b9f21d4e07
Improve typing of Spotify (#66109)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-08 23:07:13 +01:00
jjlawren
5a4eeaed56
Guard browsing Spotify if setup failed (#65074)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-01-27 11:10:19 -08:00
Paulus Schoutsen
07c239643a
Some media source things (#64954)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-26 09:49:33 +01:00
Paulus Schoutsen
a371f8f788
Allow browsing the Spotify media player in Sonos (#64921) 2022-01-25 12:43:43 -08:00
Marc Mueller
f7193400d4
Use platform enum (6) [S] (#60944) 2021-12-04 13:43:48 +01:00
Ruslan Sayfutdinov
016abda12e
Pylint plugin to check that relative imports are used (#50937)
* Pylint plugin to check that relative imports are used

* Fix existing sites

* Update description message

* Fix typo
2021-05-22 09:15:30 +01:00
J. Nick Koston
87420627a8
Reduce config entry setup/unload boilerplate Q-S (#49778) 2021-04-27 22:10:04 +02:00
J. Nick Koston
4cd7f9bd8b
Raise ConfigEntryAuthFailed during setup or coordinator update to start reauth (#48962) 2021-04-09 19:41:29 -10:00
J. Nick Koston
6cf57da89f
Use SOURCE_REAUTH constant for starting reauth flows (#48553) 2021-03-31 19:48:32 +02:00
Paulus Schoutsen
06626af337
Guard for when refreshing token fails (#43855) 2020-12-02 14:55:47 +01:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) (#41600) 2020-10-12 16:59:05 +02:00
Franck Nijhof
ed3e04b9ed
Fix Spotify scopes validation for re-auth (#39638) 2020-09-04 08:57:12 +02:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements (#39320)
* Remove unnecessary exception re-wraps

* Preserve exception chains on re-raise

We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.

The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.

Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.

* Fix mistaken re-wrap in homematicip_cloud/hap.py

Missed the difference between HmipConnectionError and
HmipcConnectionError.

* Do not hide original error on plex new cert validation error

Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
cgtobi
c8d49a8adf
Add Spotify media browser capability (#39240)
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 (#36233)
* 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 (#30717)
* 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
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests (#22096)
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00