Skip to content

Commit

Permalink
Add call_item? predicate to GroupItem (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimtng authored Jul 21, 2024
1 parent e5d9c36 commit ef76752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openhab/core/items/group_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def format_type(command)
base_item.format_type(command)
end

%w[color contact date_time dimmer image location number player rollershutter string switch].each do |type|
%w[call color contact date_time dimmer image location number player rollershutter string switch].each do |type|
type_class = type.gsub(/(^[a-z]|_[a-z])/) { |letter| letter[-1].upcase }
class_eval <<~RUBY, __FILE__, __LINE__ + 1
def #{type}_item? # def date_time_item?
Expand Down

0 comments on commit ef76752

Please sign in to comment.