From ef76752268f6e27f2fcc8f342b41865bf14fd035 Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Mon, 22 Jul 2024 02:39:51 +1000 Subject: [PATCH] Add `call_item?` predicate to GroupItem (#311) --- lib/openhab/core/items/group_item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openhab/core/items/group_item.rb b/lib/openhab/core/items/group_item.rb index af9f01c66f..f0f0546e0a 100644 --- a/lib/openhab/core/items/group_item.rb +++ b/lib/openhab/core/items/group_item.rb @@ -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?