diff --git a/lib/openhab/dsl/items/group_item.rb b/lib/openhab/dsl/items/group_item.rb index fb81af1f0..4fbd15f6d 100644 --- a/lib/openhab/dsl/items/group_item.rb +++ b/lib/openhab/dsl/items/group_item.rb @@ -29,7 +29,7 @@ def initialize(group_item) # # @return [Array] def to_a - group.get_members.to_a + group.get_members.map { |i| ::OpenHAB::Core::ItemProxy.new(i) } end # Name of the group