Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
add simplified alias for state_changes_*
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer committed Dec 12, 2022
1 parent e43aa40 commit de35d5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/openhab/core/items/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ def previous_state(service = nil, skip_equal: false)
end
end

alias_method :state_changes_since, :count_state_changes_since
alias_method :state_changes_between, :count_state_changes_between

private

#
Expand Down

0 comments on commit de35d5d

Please sign in to comment.