Skip to content

Commit

Permalink
SONOS:
Browse files Browse the repository at this point in the history
- bump to 1.8.8
- introduce item handling from smartplugin
- code cleanup
  • Loading branch information
sisamiwe committed Nov 13, 2024
1 parent 940af3a commit 334dc5a
Show file tree
Hide file tree
Showing 48 changed files with 85 additions and 78 deletions.
153 changes: 79 additions & 74 deletions sonos/__init__.py
100755 → 100644

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sonos/plugin.yaml
100755 → 100644
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.7 # Plugin version
version: 1.8.8 # Plugin version
sh_minversion: '1.5.1' # minimum shNG version to use this plugin
py_minversion: '3.8' # minimum Python version to use for this plugin
multi_instance: False # plugin supports multi instance
Expand Down Expand Up @@ -227,13 +227,15 @@ item_attributes:

sonos_dpt3_step:
type: int
default: 2
description:
de: 'Relatives dpt3 Inkrement'
en: 'Relative dpt3 increment'
mandatory: False

sonos_dpt3_time:
type: int
default: 1
description:
de: 'Dpt3 Zeitinkrement'
en: 'Dpt3 time increment'
Expand Down
Empty file modified sonos/requirements.txt
100755 → 100644
Empty file.
Empty file modified sonos/search_uids.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/__init__.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/alarms.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/cache.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/compat.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/config.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/core.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/data_structure_quirks.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/data_structures.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/data_structures_entry.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/discovery.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/events.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/events_asyncio.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/events_base.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/events_twisted.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/exceptions.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/groups.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/ms_data_structures.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/music_library.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/music_services/__init__.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/music_services/accounts.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/music_services/data_structures.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/music_services/music_service.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/music_services/token_store.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/plugins/__init__.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/plugins/example.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/plugins/plex.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/plugins/sharelink.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/plugins/spotify.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/plugins/wimp.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/services.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/snapshot.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/soap.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/utils.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/xml.py
100755 → 100644
Empty file.
Empty file modified sonos/soco/zonegroupstate.py
100755 → 100644
Empty file.
Empty file modified sonos/sv_widgets/widget_sonos.css
100755 → 100644
Empty file.
Empty file modified sonos/sv_widgets/widget_sonos.html
100755 → 100644
Empty file.
Empty file modified sonos/sv_widgets/widget_sonos.js
100755 → 100644
Empty file.
Empty file modified sonos/sv_widgets/widget_widget_sonos.player.html
100755 → 100644
Empty file.
Empty file modified sonos/user_doc.rst
100755 → 100644
Empty file.
Empty file modified sonos/utils.py
100755 → 100644
Empty file.
6 changes: 3 additions & 3 deletions sonos/webif/__init__.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def index(self, reload=None):

return tmpl.render(p=self.plugin,
webif_pagelength=pagelength,
item_list=self.plugin.item_list,
item_count=len(self.plugin.item_list),
item_list=self.plugin.get_item_list(),
item_count=len(self.plugin.get_item_list()),
plugin_shortname=self.plugin.get_shortname(),
plugin_version=self.plugin.get_version(),
plugin_info=self.plugin.get_info(),
Expand Down Expand Up @@ -103,7 +103,7 @@ def get_data_html(self, dataSet=None):
data = dict()

data['items'] = {}
for item in self.plugin.item_list:
for item in self.plugin.get_item_list():
data['items'][item.property.path] = {}
data['items'][item.property.path]['value'] = item() if item() is not None else '-'
data['items'][item.property.path]['last_update'] = item.property.last_update.strftime('%d.%m.%Y %H:%M:%S')
Expand Down
Empty file modified sonos/webif/static/img/plugin_logo.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified sonos/webif/templates/index.html
100755 → 100644
Empty file.

0 comments on commit 334dc5a

Please sign in to comment.