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

NotificationAction: replace notify with Notification.send, add Notification.hide, support reference id. #297

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

jimtng
Copy link
Contributor

@jimtng jimtng commented Jul 3, 2024

Support notification reference ID and hiding notifications

Wait for openhab/openhab-addons#16979 to be merged

  • Move notify into the Actions::Notification class, log
    a deprecation warning in the old Actions.notify method.
  • Rename severity parameter to tag, so we provide backwards compatibility to accept severity as well as tag.
  • Add id parameter
  • Add Notification.hide method

@jimtng jimtng added the enhancement New feature or request label Jul 3, 2024
@jimtng jimtng force-pushed the notify-tag-refid branch 2 times, most recently from 9008104 to 0a52298 Compare July 3, 2024 08:20
@jimtng jimtng marked this pull request as draft July 3, 2024 11:39
lib/openhab/core/actions.rb Show resolved Hide resolved
lib/openhab/core/actions/notification.rb Outdated Show resolved Hide resolved
lib/openhab/core/actions/notification.rb Outdated Show resolved Hide resolved
lib/openhab/core/actions/notification.rb Outdated Show resolved Hide resolved
…otification.hide`, support reference id

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@jimtng jimtng force-pushed the notify-tag-refid branch from 0a52298 to f198884 Compare July 3, 2024 13:52
@jimtng
Copy link
Contributor Author

jimtng commented Jul 4, 2024

The dependent PR has just been merged.

@jimtng jimtng marked this pull request as ready for review July 4, 2024 12:19
@ccutrer ccutrer merged commit 71b4352 into openhab:main Jul 4, 2024
18 checks passed
@jimtng jimtng deleted the notify-tag-refid branch July 4, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants