mirror of
https://github.com/home-assistant/core.git
synced 2025-09-10 23:31:37 +02:00
Bump spotifyaio to 1.0.0 (#150820)
This commit is contained in:
committed by
GitHub
parent
f44578f45f
commit
fcbfca52f3
@@ -8,5 +8,5 @@
|
|||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["spotifyaio"],
|
"loggers": ["spotifyaio"],
|
||||||
"requirements": ["spotifyaio==0.8.11"]
|
"requirements": ["spotifyaio==1.0.0"]
|
||||||
}
|
}
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@@ -2823,7 +2823,7 @@ speak2mary==1.4.0
|
|||||||
speedtest-cli==2.1.3
|
speedtest-cli==2.1.3
|
||||||
|
|
||||||
# homeassistant.components.spotify
|
# homeassistant.components.spotify
|
||||||
spotifyaio==0.8.11
|
spotifyaio==1.0.0
|
||||||
|
|
||||||
# homeassistant.components.sql
|
# homeassistant.components.sql
|
||||||
sqlparse==0.5.0
|
sqlparse==0.5.0
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@@ -2330,7 +2330,7 @@ speak2mary==1.4.0
|
|||||||
speedtest-cli==2.1.3
|
speedtest-cli==2.1.3
|
||||||
|
|
||||||
# homeassistant.components.spotify
|
# homeassistant.components.spotify
|
||||||
spotifyaio==0.8.11
|
spotifyaio==1.0.0
|
||||||
|
|
||||||
# homeassistant.components.sql
|
# homeassistant.components.sql
|
||||||
sqlparse==0.5.0
|
sqlparse==0.5.0
|
||||||
|
@@ -8,8 +8,8 @@ import pytest
|
|||||||
from spotifyaio.models import (
|
from spotifyaio.models import (
|
||||||
Album,
|
Album,
|
||||||
Artist,
|
Artist,
|
||||||
ArtistResponse,
|
|
||||||
Devices,
|
Devices,
|
||||||
|
FollowedArtistResponse,
|
||||||
NewReleasesResponse,
|
NewReleasesResponse,
|
||||||
NewReleasesResponseInner,
|
NewReleasesResponseInner,
|
||||||
PlaybackState,
|
PlaybackState,
|
||||||
@@ -138,7 +138,7 @@ def mock_spotify() -> Generator[AsyncMock]:
|
|||||||
getattr(client, method).return_value = obj.from_json(
|
getattr(client, method).return_value = obj.from_json(
|
||||||
load_fixture(fixture, DOMAIN)
|
load_fixture(fixture, DOMAIN)
|
||||||
)
|
)
|
||||||
client.get_followed_artists.return_value = ArtistResponse.from_json(
|
client.get_followed_artists.return_value = FollowedArtistResponse.from_json(
|
||||||
load_fixture("followed_artists.json", DOMAIN)
|
load_fixture("followed_artists.json", DOMAIN)
|
||||||
).artists.items
|
).artists.items
|
||||||
client.get_new_releases.return_value = NewReleasesResponse.from_json(
|
client.get_new_releases.return_value = NewReleasesResponse.from_json(
|
||||||
|
@@ -125,6 +125,15 @@
|
|||||||
'tracks': dict({
|
'tracks': dict({
|
||||||
'items': list([
|
'items': list([
|
||||||
dict({
|
dict({
|
||||||
|
'added_at': '2015-01-15T12:39:22+00:00',
|
||||||
|
'added_by': dict({
|
||||||
|
'external_urls': dict({
|
||||||
|
'spotify': 'https://open.spotify.com/user/jmperezperez',
|
||||||
|
}),
|
||||||
|
'href': 'https://api.spotify.com/v1/users/jmperezperez',
|
||||||
|
'uri': 'spotify:user:jmperezperez',
|
||||||
|
'user_id': 'jmperezperez',
|
||||||
|
}),
|
||||||
'track': dict({
|
'track': dict({
|
||||||
'album': dict({
|
'album': dict({
|
||||||
'album_id': '2pANdqPvxInB0YvcDiw4ko',
|
'album_id': '2pANdqPvxInB0YvcDiw4ko',
|
||||||
@@ -182,6 +191,15 @@
|
|||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
dict({
|
dict({
|
||||||
|
'added_at': '2015-01-15T12:40:03+00:00',
|
||||||
|
'added_by': dict({
|
||||||
|
'external_urls': dict({
|
||||||
|
'spotify': 'https://open.spotify.com/user/jmperezperez',
|
||||||
|
}),
|
||||||
|
'href': 'https://api.spotify.com/v1/users/jmperezperez',
|
||||||
|
'uri': 'spotify:user:jmperezperez',
|
||||||
|
'user_id': 'jmperezperez',
|
||||||
|
}),
|
||||||
'track': dict({
|
'track': dict({
|
||||||
'album': dict({
|
'album': dict({
|
||||||
'album_id': '6nlfkk5GoXRL1nktlATNsy',
|
'album_id': '6nlfkk5GoXRL1nktlATNsy',
|
||||||
@@ -239,6 +257,15 @@
|
|||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
dict({
|
dict({
|
||||||
|
'added_at': '2015-01-15T12:22:30+00:00',
|
||||||
|
'added_by': dict({
|
||||||
|
'external_urls': dict({
|
||||||
|
'spotify': 'https://open.spotify.com/user/jmperezperez',
|
||||||
|
}),
|
||||||
|
'href': 'https://api.spotify.com/v1/users/jmperezperez',
|
||||||
|
'uri': 'spotify:user:jmperezperez',
|
||||||
|
'user_id': 'jmperezperez',
|
||||||
|
}),
|
||||||
'track': dict({
|
'track': dict({
|
||||||
'album': dict({
|
'album': dict({
|
||||||
'album_id': '4hnqM0JK4CM1phwfq1Ldyz',
|
'album_id': '4hnqM0JK4CM1phwfq1Ldyz',
|
||||||
@@ -296,6 +323,15 @@
|
|||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
dict({
|
dict({
|
||||||
|
'added_at': '2015-01-15T12:40:35+00:00',
|
||||||
|
'added_by': dict({
|
||||||
|
'external_urls': dict({
|
||||||
|
'spotify': 'https://open.spotify.com/user/jmperezperez',
|
||||||
|
}),
|
||||||
|
'href': 'https://api.spotify.com/v1/users/jmperezperez',
|
||||||
|
'uri': 'spotify:user:jmperezperez',
|
||||||
|
'user_id': 'jmperezperez',
|
||||||
|
}),
|
||||||
'track': dict({
|
'track': dict({
|
||||||
'album': dict({
|
'album': dict({
|
||||||
'album_id': '2usKFntxa98WHMcyW6xJBz',
|
'album_id': '2usKFntxa98WHMcyW6xJBz',
|
||||||
@@ -353,6 +389,15 @@
|
|||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
dict({
|
dict({
|
||||||
|
'added_at': '2015-01-15T12:41:10+00:00',
|
||||||
|
'added_by': dict({
|
||||||
|
'external_urls': dict({
|
||||||
|
'spotify': 'https://open.spotify.com/user/jmperezperez',
|
||||||
|
}),
|
||||||
|
'href': 'https://api.spotify.com/v1/users/jmperezperez',
|
||||||
|
'uri': 'spotify:user:jmperezperez',
|
||||||
|
'user_id': 'jmperezperez',
|
||||||
|
}),
|
||||||
'track': dict({
|
'track': dict({
|
||||||
'album': dict({
|
'album': dict({
|
||||||
'album_id': '0ivM6kSawaug0j3tZVusG2',
|
'album_id': '0ivM6kSawaug0j3tZVusG2',
|
||||||
@@ -410,6 +455,15 @@
|
|||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
dict({
|
dict({
|
||||||
|
'added_at': '2024-11-28T11:20:58+00:00',
|
||||||
|
'added_by': dict({
|
||||||
|
'external_urls': dict({
|
||||||
|
'spotify': 'https://open.spotify.com/user/1112264649',
|
||||||
|
}),
|
||||||
|
'href': 'https://api.spotify.com/v1/users/1112264649',
|
||||||
|
'uri': 'spotify:user:1112264649',
|
||||||
|
'user_id': '1112264649',
|
||||||
|
}),
|
||||||
'track': dict({
|
'track': dict({
|
||||||
'description': 'Patreon: https://www.patreon.com/safetythirdMerch: https://safetythird.shopYouTube: https://www.youtube.com/@safetythird/Advertising Inquiries: https://redcircle.com/brandsPrivacy & Opt-Out: https://redcircle.com/privacy',
|
'description': 'Patreon: https://www.patreon.com/safetythirdMerch: https://safetythird.shopYouTube: https://www.youtube.com/@safetythird/Advertising Inquiries: https://redcircle.com/brandsPrivacy & Opt-Out: https://redcircle.com/privacy',
|
||||||
'duration_ms': 3690161,
|
'duration_ms': 3690161,
|
||||||
|
Reference in New Issue
Block a user