homeassistant-stubs 2024.12.0b0__py3-none-any.whl → 2024.12.0b1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- homeassistant-stubs/components/spotify/coordinator.pyi +1 -4
- {homeassistant_stubs-2024.12.0b0.dist-info → homeassistant_stubs-2024.12.0b1.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.12.0b0.dist-info → homeassistant_stubs-2024.12.0b1.dist-info}/RECORD +5 -6
- homeassistant-stubs/components/spotify/sensor.pyi +0 -31
- {homeassistant_stubs-2024.12.0b0.dist-info → homeassistant_stubs-2024.12.0b1.dist-info}/WHEEL +0 -0
- {homeassistant_stubs-2024.12.0b0.dist-info → homeassistant_stubs-2024.12.0b1.dist-info}/licenses/LICENSE +0 -0
@@ -7,7 +7,6 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
8
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator, UpdateFailed as UpdateFailed
|
9
9
|
from spotifyaio import PlaybackState as PlaybackState, Playlist as Playlist, SpotifyClient as SpotifyClient, UserProfile as UserProfile
|
10
|
-
from spotifyaio.models import AudioFeatures as AudioFeatures
|
11
10
|
|
12
11
|
_LOGGER: Incomplete
|
13
12
|
type SpotifyConfigEntry = ConfigEntry[SpotifyData]
|
@@ -17,9 +16,8 @@ class SpotifyCoordinatorData:
|
|
17
16
|
current_playback: PlaybackState | None
|
18
17
|
position_updated_at: datetime | None
|
19
18
|
playlist: Playlist | None
|
20
|
-
audio_features: AudioFeatures | None
|
21
19
|
dj_playlist: bool = ...
|
22
|
-
def __init__(self, current_playback, position_updated_at, playlist,
|
20
|
+
def __init__(self, current_playback, position_updated_at, playlist, dj_playlist=...) -> None: ...
|
23
21
|
|
24
22
|
SPOTIFY_DJ_PLAYLIST_URI: str
|
25
23
|
|
@@ -28,7 +26,6 @@ class SpotifyCoordinator(DataUpdateCoordinator[SpotifyCoordinatorData]):
|
|
28
26
|
config_entry: SpotifyConfigEntry
|
29
27
|
client: Incomplete
|
30
28
|
_playlist: Incomplete
|
31
|
-
_currently_loaded_track: Incomplete
|
32
29
|
def __init__(self, hass: HomeAssistant, client: SpotifyClient) -> None: ...
|
33
30
|
async def _async_setup(self) -> None: ...
|
34
31
|
async def _async_update_data(self) -> SpotifyCoordinatorData: ...
|
{homeassistant_stubs-2024.12.0b0.dist-info → homeassistant_stubs-2024.12.0b1.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: homeassistant-stubs
|
3
|
-
Version: 2024.12.
|
3
|
+
Version: 2024.12.0b1
|
4
4
|
Summary: PEP 484 typing stubs for Home Assistant Core
|
5
5
|
Project-URL: Homepage, https://github.com/KapJI/homeassistant-stubs
|
6
6
|
Project-URL: Bug Tracker, https://github.com/KapJI/homeassistant-stubs/issues
|
@@ -17,7 +17,7 @@ Classifier: Topic :: Home Automation
|
|
17
17
|
Classifier: Topic :: Software Development
|
18
18
|
Classifier: Typing :: Typed
|
19
19
|
Requires-Python: <3.14,>=3.12
|
20
|
-
Requires-Dist: homeassistant==2024.12.
|
20
|
+
Requires-Dist: homeassistant==2024.12.0b1
|
21
21
|
Description-Content-Type: text/markdown
|
22
22
|
|
23
23
|
[](https://github.com/KapJI/homeassistant-stubs/actions/workflows/ci.yaml)
|
{homeassistant_stubs-2024.12.0b0.dist-info → homeassistant_stubs-2024.12.0b1.dist-info}/RECORD
RENAMED
@@ -2923,12 +2923,11 @@ homeassistant-stubs/components/spotify/application_credentials.pyi,sha256=Hra7BG
|
|
2923
2923
|
homeassistant-stubs/components/spotify/browse_media.pyi,sha256=ahw8occ1DFueh8HtuigzDGA-84q7ITs_TQJ9oZ5hR3k,2682
|
2924
2924
|
homeassistant-stubs/components/spotify/config_flow.pyi,sha256=aUsCN-aXlOXnp4EIZbyNqC6d0RVOXQlDPOEMUMoVs6Y,1122
|
2925
2925
|
homeassistant-stubs/components/spotify/const.pyi,sha256=GOw4vthI7eJAe4DJO1OrgoTaPc0h2paoeqiLHCrSwpw,244
|
2926
|
-
homeassistant-stubs/components/spotify/coordinator.pyi,sha256=
|
2926
|
+
homeassistant-stubs/components/spotify/coordinator.pyi,sha256=zNKScew5B1gGsXmWba2NXKHopz-748mNWWopRy_Dd6w,1350
|
2927
2927
|
homeassistant-stubs/components/spotify/diagnostics.pyi,sha256=o60XIOekBhj0Gsy7JUn_EfK2Oj-aRfrLhMPSr41Xrqc,268
|
2928
2928
|
homeassistant-stubs/components/spotify/entity.pyi,sha256=CFCKXDGo1ql1i3J3qsM0TL1ywOzfPIV3eNzf6cVB138,534
|
2929
2929
|
homeassistant-stubs/components/spotify/media_player.pyi,sha256=NJEH0NKQQUFEdmtiXHWeEU-iRriNJPXSL-e51YIhYYM,4325
|
2930
2930
|
homeassistant-stubs/components/spotify/models.pyi,sha256=2Vrdk4u6nn0Gy0-uwHSNKMaUl60wUmOv4DHaeAGqnAg,540
|
2931
|
-
homeassistant-stubs/components/spotify/sensor.pyi,sha256=Up3ptvVBXsuNdWhrc2RGYTMph0QDbyyvVGCaKCBulzE,2027
|
2932
2931
|
homeassistant-stubs/components/spotify/system_health.pyi,sha256=Ht4CAzjNxrifQmLgrpkzVKivDt0VIcGlYj7RiDh1PTw,352
|
2933
2932
|
homeassistant-stubs/components/spotify/util.pyi,sha256=odnvW67eBiuvju5lXSAUEAcN8KI7Q6DIrK37ZKncnkU,367
|
2934
2933
|
homeassistant-stubs/components/sql/__init__.pyi,sha256=jI2uC0kT1w5dbLaq6mf5htbiHdo1WWObfgxNqf7birs,1694
|
@@ -3789,7 +3788,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
|
|
3789
3788
|
homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
|
3790
3789
|
homeassistant-stubs/util/yaml/loader.pyi,sha256=FpRpxb-ZvfthDdO6Js0JqWtzlQfKDPP7nY5yOXp3604,3917
|
3791
3790
|
homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
|
3792
|
-
homeassistant_stubs-2024.12.
|
3793
|
-
homeassistant_stubs-2024.12.
|
3794
|
-
homeassistant_stubs-2024.12.
|
3795
|
-
homeassistant_stubs-2024.12.
|
3791
|
+
homeassistant_stubs-2024.12.0b1.dist-info/METADATA,sha256=KCYww6oTGUv65Dt7Hqh0utJF3aGQx3ROruOcn3MFb48,2936
|
3792
|
+
homeassistant_stubs-2024.12.0b1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
3793
|
+
homeassistant_stubs-2024.12.0b1.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
|
3794
|
+
homeassistant_stubs-2024.12.0b1.dist-info/RECORD,,
|
@@ -1,31 +0,0 @@
|
|
1
|
-
from .coordinator import SpotifyConfigEntry as SpotifyConfigEntry, SpotifyCoordinator as SpotifyCoordinator
|
2
|
-
from .entity import SpotifyEntity as SpotifyEntity
|
3
|
-
from _typeshed import Incomplete
|
4
|
-
from collections.abc import Callable as Callable
|
5
|
-
from dataclasses import dataclass
|
6
|
-
from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription
|
7
|
-
from homeassistant.const import PERCENTAGE as PERCENTAGE
|
8
|
-
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
|
-
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
|
-
from spotifyaio.models import AudioFeatures as AudioFeatures, Key
|
11
|
-
|
12
|
-
@dataclass(frozen=True, kw_only=True)
|
13
|
-
class SpotifyAudioFeaturesSensorEntityDescription(SensorEntityDescription):
|
14
|
-
value_fn: Callable[[AudioFeatures], float | str | None]
|
15
|
-
def __init__(self, *, key, device_class=..., entity_category=..., entity_registry_enabled_default=..., entity_registry_visible_default=..., force_update=..., icon=..., has_entity_name=..., name=..., translation_key=..., translation_placeholders=..., unit_of_measurement=..., last_reset=..., native_unit_of_measurement=..., options=..., state_class=..., suggested_display_precision=..., suggested_unit_of_measurement=..., value_fn) -> None: ...
|
16
|
-
|
17
|
-
KEYS: dict[Key, str]
|
18
|
-
KEY_OPTIONS: Incomplete
|
19
|
-
|
20
|
-
def _get_key(audio_features: AudioFeatures) -> str | None: ...
|
21
|
-
|
22
|
-
AUDIO_FEATURE_SENSORS: tuple[SpotifyAudioFeaturesSensorEntityDescription, ...]
|
23
|
-
|
24
|
-
async def async_setup_entry(hass: HomeAssistant, entry: SpotifyConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
25
|
-
|
26
|
-
class SpotifyAudioFeatureSensor(SpotifyEntity, SensorEntity):
|
27
|
-
entity_description: SpotifyAudioFeaturesSensorEntityDescription
|
28
|
-
_attr_unique_id: Incomplete
|
29
|
-
def __init__(self, coordinator: SpotifyCoordinator, entity_description: SpotifyAudioFeaturesSensorEntityDescription) -> None: ...
|
30
|
-
@property
|
31
|
-
def native_value(self) -> float | str | None: ...
|
{homeassistant_stubs-2024.12.0b0.dist-info → homeassistant_stubs-2024.12.0b1.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|