pyblu 0.3.2__tar.gz → 0.3.3__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.3
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.3"
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
@@ -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