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

Fix profile examples #380

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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