pyblu 0.3.2__tar.gz → 0.3.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyblu
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary:
5
5
  Home-page: https://github.com/LouisChrist/pyblu
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyblu"
3
- version = "0.3.2"
3
+ version = "0.3.4"
4
4
  description = ""
5
5
  authors = ["Louis Christ <mail@louischrist.de>"]
6
6
  repository = "https://github.com/LouisChrist/pyblu"
@@ -27,14 +27,14 @@ class Status:
27
27
 
28
28
  volume: int
29
29
  """Volume level with a range of 0-100"""
30
- volume_db: int
30
+ volume_db: float
31
31
  """Volume level in dB"""
32
32
 
33
33
  mute: bool
34
34
  """Mute status"""
35
35
  mute_volume: int | None
36
36
  """If the player is muted, then this is the unmuted volume level. Absent if the player is not muted."""
37
- mute_volume_db: int | None
37
+ mute_volume_db: float | None
38
38
  """If the player is muted, then this is the unmuted volume level in dB. Absent if the player is not muted."""
39
39
 
40
40
  seconds: int
@@ -102,12 +102,12 @@ class SyncStatus:
102
102
  model_name: str
103
103
  """Model name of the player"""
104
104
 
105
- mute_volume_db: int | None
105
+ mute_volume_db: float | None
106
106
  """If the player is muted, then this is the unmuted volume level in dB. Absent if the player is not muted."""
107
107
  mute_volume: int | None
108
108
  """If the player is muted, then this is the unmuted volume level. Absent if the player is not muted."""
109
109
 
110
- volume_db: int
110
+ volume_db: float
111
111
  """Volume level in dB"""
112
112
  volume: int
113
113
  """Volume level with a range of 0-100. -1 means fixed volume."""
@@ -54,9 +54,9 @@ def parse_sync_status(response_dict: dict[str, Any]) -> SyncStatus:
54
54
  brand=chained_get(response_dict, "SyncStatus", "@brand"),
55
55
  model=chained_get(response_dict, "SyncStatus", "@model"),
56
56
  model_name=chained_get(response_dict, "SyncStatus", "@modelName"),
57
- mute_volume_db=chained_get(response_dict, "SyncStatus", "@muteDb", _map=int),
57
+ mute_volume_db=chained_get(response_dict, "SyncStatus", "@muteDb", _map=float),
58
58
  mute_volume=chained_get(response_dict, "SyncStatus", "@muteVolume", _map=int),
59
- volume_db=chained_get(response_dict, "SyncStatus", "@db", _map=int),
59
+ volume_db=chained_get(response_dict, "SyncStatus", "@db", _map=float),
60
60
  volume=chained_get(response_dict, "SyncStatus", "@volume", _map=int),
61
61
  )
62
62
 
@@ -85,10 +85,10 @@ def parse_status(response_dict: dict[str, Any]) -> Status:
85
85
  name=name,
86
86
  image=chained_get(response_dict, "status", "image"),
87
87
  volume=chained_get(response_dict, "status", "volume", _map=int),
88
- volume_db=chained_get(response_dict, "status", "db", _map=int),
88
+ volume_db=chained_get(response_dict, "status", "db", _map=float),
89
89
  mute=chained_get(response_dict, "status", "mute") == "1",
90
90
  mute_volume=chained_get(response_dict, "status", "muteVolume", _map=int),
91
- mute_volume_db=chained_get(response_dict, "status", "muteDb", _map=int),
91
+ mute_volume_db=chained_get(response_dict, "status", "muteDb", _map=float),
92
92
  seconds=chained_get(response_dict, "status", "secs", _map=int),
93
93
  total_seconds=chained_get(response_dict, "status", "totlen", _map=float),
94
94
  can_seek=chained_get(response_dict, "status", "canSeek") == "1",
File without changes
File without changes
File without changes
File without changes