Skip to content

Commit

Permalink
Merge pull request #992 from sisamiwe/dev-sonos
Browse files Browse the repository at this point in the history
SONOS: Bugfix for dpt3 volume handling
  • Loading branch information
aschwith authored Jan 5, 2025
2 parents 6ec05c0 + df2b62f commit da32d13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sonos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ class Sonos(SmartPlugin):
"""
Main class of the Plugin. Does all plugin specific stuff
"""
PLUGIN_VERSION = "1.8.9"
PLUGIN_VERSION = "1.8.10"

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

# Extract number of online speakers:
self.SoCo_nr_speakers = online_speaker_count
self.SoCo_nr_speakers = online_speaker_count

def _is_speaker_up(self, uid: str, ip_address: str) -> bool:
"""
Expand Down
2 changes: 1 addition & 1 deletion sonos/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugin:
documentation: https://github.com/smarthomeNG/plugins/blob/master/sonos/README.md
support: https://knx-user-forum.de/forum/supportforen/smarthome-py/25151-sonos-anbindung

version: 1.8.9 # Plugin version
version: 1.8.10 # Plugin version
sh_minversion: '1.10.0.3' # minimum shNG version to use this plugin
py_minversion: '3.9' # minimum Python version to use for this plugin
multi_instance: False # plugin supports multi instance
Expand Down

0 comments on commit da32d13

Please sign in to comment.