Skip to content

Commit da32d13

Browse files
authored
Merge pull request #992 from sisamiwe/dev-sonos
SONOS: Bugfix for dpt3 volume handling
2 parents 6ec05c0 + df2b62f commit da32d13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sonos/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2994,7 +2994,7 @@ class Sonos(SmartPlugin):
29942994
"""
29952995
Main class of the Plugin. Does all plugin specific stuff
29962996
"""
2997-
PLUGIN_VERSION = "1.8.9"
2997+
PLUGIN_VERSION = "1.8.10"
29982998

29992999
def __init__(self, sh):
30003000
"""Initializes the plugin."""
@@ -3244,7 +3244,7 @@ def _handle_dpt3(self, item, caller=None, source=None, dest=None):
32443244
if caller != self.get_fullname():
32453245
item_config = self.get_item_config(item)
32463246
volume_item = item_config['volume_item']
3247-
volume_helper_item = item_config['helper']
3247+
volume_helper_item = item_config['helper_item']
32483248
vol_step = item_config['dpt3_step']
32493249
vol_time = item_config['dpt3_time']
32503250
vol_max = max(0, self._resolve_max_volume_command(item)) or 100
@@ -3826,7 +3826,7 @@ def _discover(self, force: bool = False) -> None:
38263826
sonos_speaker[uid].dispose()
38273827

38283828
# Extract number of online speakers:
3829-
self.SoCo_nr_speakers = online_speaker_count
3829+
self.SoCo_nr_speakers = online_speaker_count
38303830

38313831
def _is_speaker_up(self, uid: str, ip_address: str) -> bool:
38323832
"""

sonos/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugin:
1212
documentation: https://github.com/smarthomeNG/plugins/blob/master/sonos/README.md
1313
support: https://knx-user-forum.de/forum/supportforen/smarthome-py/25151-sonos-anbindung
1414

15-
version: 1.8.9 # Plugin version
15+
version: 1.8.10 # Plugin version
1616
sh_minversion: '1.10.0.3' # minimum shNG version to use this plugin
1717
py_minversion: '3.9' # minimum Python version to use for this plugin
1818
multi_instance: False # plugin supports multi instance

0 commit comments

Comments
 (0)