Skip to content

Commit

Permalink
alias GenericItem#category to GenericItem#icon
Browse files Browse the repository at this point in the history
that's what it's called in the sitemap builder, and what it's effectively
for now

Signed-off-by: Cody Cutrer <cody@cutrer.us>
  • Loading branch information
ccutrer committed Oct 4, 2024
1 parent 0352498 commit 0e8f11c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/openhab/core/items/generic_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def label=(value)
end

# @!attribute [rw] category
# The item's category.
# The item's category (icon).
# @return [String]
def category=(value)
modify do
Expand All @@ -319,6 +319,8 @@ def category=(value)
set_category(value)
end
end
alias_method :icon, :category
alias_method :icon=, :category=

# @!attribute [rw] tags
# The item's tags
Expand Down

0 comments on commit 0e8f11c

Please sign in to comment.