Skip to content

Commit

Permalink
s/@!deprecated/@deprecated/
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng authored and ccutrer committed Sep 19, 2024
1 parent 996eb75 commit 2d2789e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/openhab/core/actions/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def send(
tag ||= severity
args.push(msg.to_s, icon&.to_s, tag&.to_s)

# @!deprecated OH 4.1
# @deprecated OH 4.1
if Core.version >= Core::V4_2
buttons ||= []
buttons = buttons.map { |title, action| "#{title}=#{action}" } if buttons.is_a?(Hash)
Expand Down
2 changes: 1 addition & 1 deletion lib/openhab/dsl/rules/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ def every(*values, at: nil, offset: nil, attach: nil)
@ruby_triggers << [:every, value, { at: at }]

if value == :day && at.is_a?(Item)
# @!deprecated OH 3.4 - attachments are supported in OH 4.0+
# @deprecated OH 3.4 - attachments are supported in OH 4.0+
if Core.version <= Core::V4_0 && !attach.nil?
raise ArgumentError, "Attachments are not supported with dynamic datetime triggers in openHAB 3.x"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/openhab/dsl/sitemaps/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ class ButtongridBuilder < LinkableWidgetBuilder
REQUIRED_BUTTON_ARGS = %i[row column click].freeze
private_constant :REQUIRED_BUTTON_ARGS

# @!deprecated OH 4.1 in OH 4.1, Buttongrid is not a LinkableWidget.
# @deprecated OH 4.1 in OH 4.1, Buttongrid is not a LinkableWidget.
# Pretend that the buttons property is its children so we can add to it in LinkableWidgetBuilder#build
if (Core::V4_1...Core::V4_2).cover?(Core.version)
java_import org.openhab.core.model.sitemap.sitemap.Buttongrid
Expand Down
2 changes: 1 addition & 1 deletion spec/openhab/core/actions/notification_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
end
end

# @!deprecated OH 4.1 remove condition/describe guard
# @deprecated OH 4.1 remove condition/describe guard
describe "with enhanced parameters", if: OpenHAB::Core.version >= OpenHAB::Core::V4_2 do
it "works" do
expect(OpenHAB::Core::Actions::NotificationAction).to receive(:send_broadcast_notification)
Expand Down

0 comments on commit 2d2789e

Please sign in to comment.