Skip to content

Commit

Permalink
Support multiple values for every trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng committed Jul 11, 2024
1 parent f545a6d commit 85e50f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openhab/dsl/rules/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ def every(value, at: nil, attach: nil)
@ruby_triggers << [:every, value, { at: at }]

if value == :day && at.is_a?(Item)
raise ArgumentError, "Attachments are not supported with dynamic datetime triggers" unless attach.nil?
# raise ArgumentError, "Attachments are not supported with dynamic datetime triggers" unless attach.nil?

return trigger("timer.DateTimeTrigger", itemName: at.name, timeOnly: true)
end
Expand Down

0 comments on commit 85e50f6

Please sign in to comment.