Skip to content

Commit

Permalink
alias GenericItem#category to GenericItem#icon (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer authored Oct 4, 2024
1 parent 0352498 commit ce5c328
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 ce5c328

Please sign in to comment.