Commit graph

302 commits

Author SHA1 Message Date
Joost Lekkerkerker
5b6bfa9ac8
Remove Spotify scope check (#123545) 2024-08-12 09:04:12 +02:00
jjlawren
59ade9cf93
Fix model import in Spotify (#119747)
* Always import HomeAssistantSpotifyData in spotify.media_browser

Relocate HomeAssistantSpotifyData to avoid circular import

* Fix moved import

* Rename module to 'models'

* Adjust docstring
2024-06-16 00:47:47 +02:00
Michael
10efb2017b
Use PEP 695 type alias for ConfigEntry type in Spotify (#118106)
Use PEP 695 type alias for ConfigEntry type
2024-05-25 12:55:40 +02:00
Michael
0ea1474556
Store runtime data inside the config entry in Spotify (#117037) 2024-05-25 10:41:23 +02:00
Sid
c2b3bf3fb9
Enable Ruff RET502 (#115139) 2024-05-21 22:19:33 +02:00
Marc Mueller
c41962455e
Use PEP 695 for decorator typing (2) (#117639) 2024-05-17 16:31:01 +02:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
Sid
6587ee20db
Enable Ruff TRY300 (#114437)
* Enable Ruff TRY300

* Update validation.py

* Address review comments
2024-03-30 10:37:59 +01:00
Joost Lekkerkerker
544215a609
Handle TypeError in Spotify (#114317) 2024-03-27 17:56:22 +01:00
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
Paulus Schoutsen
f416d67d21
Remove built-in support for import_executor in manifest (#112725) 2024-03-08 12:02:32 -05:00
Marc Mueller
930a396712
Add empty line after module docstring [s] (#112704) 2024-03-08 14:33:51 +01:00
Joost Lekkerkerker
f7acb7c91b
Add icon translations to Spotify (#112239) 2024-03-04 20:27:08 +01:00
Erik Montnemery
b0ed8c4961
Migrate integrations s-t to generic flowhandler (#111865) 2024-02-29 22:16:14 +01:00
J. Nick Koston
35a3573bd2
Import spotify in the executor to avoid blocking the event loop (#111594) 2024-02-26 18:30:21 -10:00
Joost Lekkerkerker
dcb5c0d439
Add missing abort message for Spotify (#109102)
* Shield for unregistered Spotify users

* Shield for unregistered Spotify users
2024-01-30 10:07:23 +01:00
Marc Mueller
8e83356ccb
Add decorator typing [spotify] (#107560) 2024-01-12 12:58:19 +01:00
Ben Morton
427f7a7866
Add support for the Spotify DJ (#107268)
* Add support for the Spotify DJ playlist by mocking the playlist response
Add error handling for playlist lookup to ensure it doesn't break current playback state loading

* Run linters
Add exception type to playlist lookup error handling

* Fix typo in comment

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-01-06 17:22:46 +01:00
Jan Bouwhuis
f94167a4bb
Fix invalid oauth2_unauthorized translation ref (#103873)
* Fix invalids oauth2_unauthorized translation ref

* Fix oauth2_failed
2023-11-12 21:13:38 +01:00
Allen Porter
787fb3b954
Improve OAuth error handling in configuration flows (#103157)
* Improve OAuth error handling in configuration flows

* Update strings for all integrations that use oauth2 config flow

* Remove invalid_auth strings

* Revert change to release

* Revert close change in aiohttp mock
2023-11-11 11:02:51 +01:00
Archomeda
712c061ac0
Fix Spotify media position update value (#100044)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-10-20 14:00:31 +02:00
Joost Lekkerkerker
d9227a7e3d
Add Spotify code owner (#100597) 2023-09-19 16:43:00 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Franck Nijhof
30058297cf
Migrate backported StrEnum to built-in StrEnum (#97101) 2023-07-23 23:19:24 +02:00
Emil Ahlbäck
7ed66706b9
Add "enqueue" parameter to spotify integration (#90687)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-07-23 20:26:07 +02:00
Joost Lekkerkerker
2365e4c159
Disable Spotify controls when no active session (#96914) 2023-07-23 10:59:29 +02:00
Joost Lekkerkerker
0f4c71f993
Handle nullable context in Spotify (#96913) 2023-07-19 20:37:33 +02:00
Joost Lekkerkerker
1ace9ab82e
Make Spotify accept user playlist uris (#96820)
* Make Spotify accept user platlist uris

* Fix feedback

* Fix feedback
2023-07-18 14:08:18 +02:00
Joost Lekkerkerker
a69b5a8d3b
Add support for restricted playback devices in Spotify (#96794)
* Add support for restricted devices

* Add support for restricted devices
2023-07-18 11:15:41 +02:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04: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
Joost Lekkerkerker
3c7912f7a4
Add explicit device name to Spotify (#95509) 2023-06-29 11:09:45 +02:00
Franck Nijhof
355404a959
Raise HomeAssistant error on failed Spotify service calls (#91299) 2023-04-12 20:42:33 -04:00
Franck Nijhof
e418c66d69
Update spotipy to 2.23.0 (#91217) 2023-04-11 17:01:39 +02:00
epenet
f56bf134d2
Improve browse_media type hints in media player (#90060)
* Improve browse_media type hints in media player

* Adjust components

* Adjust base entity
2023-03-24 21:49:12 -07:00
epenet
4836404288
Improve media_player type hints in integrations (#90029)
Fix some media_player type hints
2023-03-21 11:10:12 +01:00
Ben Morton
680f3c27a5
Add support for Spotify podcasts (#87671) 2023-03-05 14:02:38 +01:00
Franck Nijhof
1e05697080
Enable Ruff B007 (#88356)
* Enable Ruff B007

* Adjust existing cases
2023-02-17 21:08:18 -05:00
Erik Montnemery
23fa500406
Sort manifests 9 (#87030) 2023-02-08 20:22:30 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
GitHub Action
71d7098530 [ci skip] Translation update 2023-01-27 00:25:12 +00:00
Franck Nijhof
e084fe4903
Update spotipy to 2.22.1 (#86510) 2023-01-24 10:11:14 +01:00
Ville Skyttä
ae302bbec0
Make use of str.removeprefix and .removesuffix (#85584) 2023-01-13 12:19:38 +01:00
Marc Mueller
fa7018bbec
Improve DataUpdateCoordinator typing in integrations (6) (#84741) 2022-12-29 09:07:23 +01:00
Franck Nijhof
f39f3b612a
String formatting and max line length - Part 5 (#84501)
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-12-23 16:43:17 +01:00
Franck Nijhof
026f660889
Update spotipy to 2.22.0 (#84244) 2022-12-19 16:44:13 +01:00
GitHub Action
f25017313a [ci skip] Translation update 2022-12-09 00:24:29 +00:00
GitHub Action
1f3e5fb4fc [ci skip] Translation update 2022-12-07 00:24:08 +00:00