From 185598b923a5ba1d3001569cf851ed7f7484748b Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:45:48 +1000 Subject: [PATCH] Add `StartlevelEvent` (#294) --- lib/openhab/core/events/startlevel_event.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/openhab/core/events/startlevel_event.rb diff --git a/lib/openhab/core/events/startlevel_event.rb b/lib/openhab/core/events/startlevel_event.rb new file mode 100644 index 0000000000..d71dd92388 --- /dev/null +++ b/lib/openhab/core/events/startlevel_event.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +# @deprecated OH3.4 this guard is not needed on OH4 +return unless OpenHAB::Core.version >= OpenHAB::Core::V4_0 + +module OpenHAB + module Core + module Events + java_import org.openhab.core.events.system.StartlevelEvent + + # + # The {AbstractEvent} sent when the system start level changed. + # + # @!attribute [r] startlevel + # @return [Integer] The new start level. + # + class StartlevelEvent < AbstractEvent; end + end + end +end