Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONOS: introduce item handling from smartplugin #971

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

sisamiwe
Copy link
Contributor

@sisamiwe sisamiwe commented Nov 13, 2024

  • bump to 1.8.8
  • introduce item handling from smartplugin
  • code cleanup
  • update WebIF

- bump to 1.8.8
- introduce item handling from smartplugin
- code cleanup
@sisamiwe sisamiwe requested review from aschwith and Morg42 November 13, 2024 13:35
- update WebIf
- bugfix
self.logger.debug(f"Item {item.property.path} registered to 'sonos_send' commands with '{item_attribute}'.")

if 'sonos_recv' in item_config or 'sonos_send' in item_config:
self.add_item(item, config_data_dict=item_config, updating=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mit updating=True werden Items immer auf updating gesetzt, bei sonos_recv und bei sonos_send.

Wenn das - siehe nächste Zeile - nur bei sonos_send passieren soll, hier updating=True weglassen, das wird für sonos_send durch die Item-Klasse automatisch gesetzt

Copy link
Member

@Morg42 Morg42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sieht gut aus, auch wenn ich es nicht testen kann. Schöne Lösung mit item_conf ;)

Copy link
Contributor

@aschwith aschwith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sieht gut aus. Funktionstest der wesentlichen Funktionen passt auch bei mir.

@Morg42 Morg42 merged commit 5a00ce3 into smarthomeNG:develop Nov 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants