Skip to content

Commit

Permalink
Add StartlevelEvent (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimtng authored Jul 2, 2024
1 parent 6fae356 commit 185598b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/openhab/core/events/startlevel_event.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 185598b

Please sign in to comment.