From de35d5de48a1acb312cb6ea7391aea2e6e07ed02 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Mon, 12 Dec 2022 11:50:24 -0700 Subject: [PATCH] add simplified alias for state_changes_* --- lib/openhab/core/items/persistence.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/openhab/core/items/persistence.rb b/lib/openhab/core/items/persistence.rb index e735c5736..83eab441e 100644 --- a/lib/openhab/core/items/persistence.rb +++ b/lib/openhab/core/items/persistence.rb @@ -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 #