Skip to content

Commit

Permalink
Fix profile examples (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimtng authored Jan 17, 2025
1 parent 3145867 commit 356963b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/openhab/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def script!(name = nil, description: nil, id: nil, tag: nil, tags: nil, **kwargs
# profile(:set_uom) do |event, callback:, configuration:, state:, command:|
# unless configuration["unit"]
# logger.warn("Unit configuration not provided for set_uom profile")
# next true
# next true
# end
#
# case event
Expand Down Expand Up @@ -187,7 +187,7 @@ def script!(name = nil, description: nil, id: nil, tag: nil, tags: nil, **kwargs
# end
#
# profile(:range_filter, label: "Range Filter", config_description: config_description) do |event, state:, configuration:|
# return true unless event == :state_from_handler
# next true unless event == :state_from_handler
#
# (configuration["min"]..configuration["max"]).cover?(state)
# end
Expand Down

0 comments on commit 356963b

Please sign in to comment.