diff --git a/main/Array.html b/main/Array.html index 3b4d3e6a8e..30a6057113 100644 --- a/main/Array.html +++ b/main/Array.html @@ -2948,7 +2948,7 @@
-598 -599 600 601 602 @@ -3822,10 +3820,12 @@+609 +610 +611606 607 608 -609
# File 'lib/openhab/core/items/semantics.rb', line 598 +# File 'lib/openhab/core/items/semantics.rb', line 600 def equipments(type = nil) begin @@ -4033,8 +4033,6 @@
-573 -574 575 576 577 @@ -4044,10 +4042,12 @@+584 +585 +586581 582 583 -584
# File 'lib/openhab/core/items/semantics.rb', line 573 +# File 'lib/openhab/core/items/semantics.rb', line 575 def locations(type = nil) begin @@ -4673,8 +4673,6 @@
-620 -621 622 623 624 @@ -4697,10 +4695,12 @@+644 +645 +646641 642 643 -644
# File 'lib/openhab/core/items/semantics.rb', line 620 +# File 'lib/openhab/core/items/semantics.rb', line 622 def points(*point_or_property_types) unless (0..2).cover?(point_or_property_types.length) @@ -5108,7 +5108,7 @@+28 +29 +30 +31diff --git a/main/Float.html b/main/Float.html index 0e0bf3b9dc..15ba5924d2 100644 --- a/main/Float.html +++ b/main/Float.html @@ -3422,7 +3422,7 @@
diff --git a/main/Integer.html b/main/Integer.html index 6ded88d800..7d41b47a27 100644 --- a/main/Integer.html +++ b/main/Integer.html @@ -3414,7 +3414,7 @@
diff --git a/main/Module.html b/main/Module.html index bc9c419820..33b1205390 100644 --- a/main/Module.html +++ b/main/Module.html @@ -2928,7 +2928,7 @@
diff --git a/main/Numeric.html b/main/Numeric.html index d1ed8ad220..d42213ad26 100644 --- a/main/Numeric.html +++ b/main/Numeric.html @@ -2857,7 +2857,7 @@
Methods included from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB.html b/main/OpenHAB.html index 14c233c4cb..cebdc112e5 100644 --- a/main/OpenHAB.html +++ b/main/OpenHAB.html @@ -2827,7 +2827,7 @@
Overview
diff --git a/main/OpenHAB/Core.html b/main/OpenHAB/Core.html index 60a8a406d6..d059db5541 100644 --- a/main/OpenHAB/Core.html +++ b/main/OpenHAB/Core.html @@ -3147,7 +3147,7 @@diff --git a/main/OpenHAB/Core/AbstractUID.html b/main/OpenHAB/Core/AbstractUID.html index c933af0009..fe44f73200 100644 --- a/main/OpenHAB/Core/AbstractUID.html +++ b/main/OpenHAB/Core/AbstractUID.html @@ -3046,7 +3046,7 @@
diff --git a/main/OpenHAB/Core/Actions.html b/main/OpenHAB/Core/Actions.html index bf0c50bc54..10f5610806 100644 --- a/main/OpenHAB/Core/Actions.html +++ b/main/OpenHAB/Core/Actions.html @@ -3044,7 +3044,7 @@
diff --git a/main/OpenHAB/Core/Actions/Audio.html b/main/OpenHAB/Core/Actions/Audio.html index 598360b157..ed60d95c15 100644 --- a/main/OpenHAB/Core/Actions/Audio.html +++ b/main/OpenHAB/Core/Actions/Audio.html @@ -2991,15 +2991,21 @@
25 26 27 -28
# File 'lib/openhab/core/actions/audio.rb', line 24 def play_sound(filename, sink: nil, volume: nil) volume = PercentType.new(volume) unless volume.is_a?(PercentType) || volume.nil? - java_send :playSound, [java.lang.String, java.lang.String, PercentType.java_class], - sink, filename.to_s, volume + java_send :playSound, + [java.lang.String, java.lang.String, PercentType.java_class], + sink, + filename.to_s, + volume end
-41 -42 -43+44 +45 +46
# File 'lib/openhab/core/actions/audio.rb', line 41 +# File 'lib/openhab/core/actions/audio.rb', line 44 def play_stream(url, sink: nil) playStream(sink&.to_s, url) @@ -3098,7 +3104,7 @@diff --git a/main/OpenHAB/Core/Actions/Ephemeris.html b/main/OpenHAB/Core/Actions/Ephemeris.html index 5f63c323b6..00c9ec7cdc 100644 --- a/main/OpenHAB/Core/Actions/Ephemeris.html +++ b/main/OpenHAB/Core/Actions/Ephemeris.html @@ -2960,7 +2960,7 @@
diff --git a/main/OpenHAB/Core/Actions/Exec.html b/main/OpenHAB/Core/Actions/Exec.html index 406fbcb02f..dbb2c40c92 100644 --- a/main/OpenHAB/Core/Actions/Exec.html +++ b/main/OpenHAB/Core/Actions/Exec.html @@ -3041,7 +3041,7 @@
diff --git a/main/OpenHAB/Core/Actions/HTTP.html b/main/OpenHAB/Core/Actions/HTTP.html index 78829df87b..74201327e5 100644 --- a/main/OpenHAB/Core/Actions/HTTP.html +++ b/main/OpenHAB/Core/Actions/HTTP.html @@ -3482,7 +3482,7 @@
diff --git a/main/OpenHAB/Core/Actions/Ping.html b/main/OpenHAB/Core/Actions/Ping.html index 0e7abc9b9a..2a28cf3a9c 100644 --- a/main/OpenHAB/Core/Actions/Ping.html +++ b/main/OpenHAB/Core/Actions/Ping.html @@ -2983,7 +2983,7 @@
diff --git a/main/OpenHAB/Core/Actions/Transformation.html b/main/OpenHAB/Core/Actions/Transformation.html index 58ba78cec0..3c3d734980 100644 --- a/main/OpenHAB/Core/Actions/Transformation.html +++ b/main/OpenHAB/Core/Actions/Transformation.html @@ -2996,7 +2996,7 @@
diff --git a/main/OpenHAB/Core/Actions/Voice.html b/main/OpenHAB/Core/Actions/Voice.html index 40fb55cb67..3789f38618 100644 --- a/main/OpenHAB/Core/Actions/Voice.html +++ b/main/OpenHAB/Core/Actions/Voice.html @@ -3003,7 +3003,7 @@
diff --git a/main/OpenHAB/Core/Configuration.html b/main/OpenHAB/Core/Configuration.html index 22c424993e..76d0a6d904 100644 --- a/main/OpenHAB/Core/Configuration.html +++ b/main/OpenHAB/Core/Configuration.html @@ -2862,7 +2862,7 @@
Methods included from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/DTO.html b/main/OpenHAB/Core/DTO.html index 1c121584b7..14b65512ec 100644 --- a/main/OpenHAB/Core/DTO.html +++ b/main/OpenHAB/Core/DTO.html @@ -2829,7 +2829,7 @@
Overview
diff --git a/main/OpenHAB/Core/DTO/AbstractThingDTO.html b/main/OpenHAB/Core/DTO/AbstractThingDTO.html index a99217b27e..bd51e4c5e4 100644 --- a/main/OpenHAB/Core/DTO/AbstractThingDTO.html +++ b/main/OpenHAB/Core/DTO/AbstractThingDTO.html @@ -3076,7 +3076,7 @@diff --git a/main/OpenHAB/Core/DTO/ItemChannelLinkDTO.html b/main/OpenHAB/Core/DTO/ItemChannelLinkDTO.html index 699cbd42c7..557b72fedf 100644 --- a/main/OpenHAB/Core/DTO/ItemChannelLinkDTO.html +++ b/main/OpenHAB/Core/DTO/ItemChannelLinkDTO.html @@ -3096,7 +3096,7 @@
diff --git a/main/OpenHAB/Core/EmulateHash.html b/main/OpenHAB/Core/EmulateHash.html index 8a3a7ad265..48da4049a1 100644 --- a/main/OpenHAB/Core/EmulateHash.html +++ b/main/OpenHAB/Core/EmulateHash.html @@ -2862,7 +2862,7 @@
Methods included from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/EntityLookup.html b/main/OpenHAB/Core/EntityLookup.html index 0ee5e6105d..d4c9cb1a59 100644 --- a/main/OpenHAB/Core/EntityLookup.html +++ b/main/OpenHAB/Core/EntityLookup.html @@ -2966,7 +2966,7 @@
diff --git a/main/OpenHAB/Core/Events.html b/main/OpenHAB/Core/Events.html index 09620e2125..d560ce77b2 100644 --- a/main/OpenHAB/Core/Events.html +++ b/main/OpenHAB/Core/Events.html @@ -2829,7 +2829,7 @@
Overview
diff --git a/main/OpenHAB/Core/Events/AbstractEvent.html b/main/OpenHAB/Core/Events/AbstractEvent.html index 8b2f758f21..9ef3843b92 100644 --- a/main/OpenHAB/Core/Events/AbstractEvent.html +++ b/main/OpenHAB/Core/Events/AbstractEvent.html @@ -3094,7 +3094,7 @@diff --git a/main/OpenHAB/Core/Events/AbstractItemRegistryEvent.html b/main/OpenHAB/Core/Events/AbstractItemRegistryEvent.html index 5a957bb606..ea5d94de9b 100644 --- a/main/OpenHAB/Core/Events/AbstractItemRegistryEvent.html +++ b/main/OpenHAB/Core/Events/AbstractItemRegistryEvent.html @@ -2946,7 +2946,7 @@
diff --git a/main/OpenHAB/Core/Events/AbstractThingRegistryEvent.html b/main/OpenHAB/Core/Events/AbstractThingRegistryEvent.html index 5e72144100..4447ff05cc 100644 --- a/main/OpenHAB/Core/Events/AbstractThingRegistryEvent.html +++ b/main/OpenHAB/Core/Events/AbstractThingRegistryEvent.html @@ -2946,7 +2946,7 @@
diff --git a/main/OpenHAB/Core/Events/ItemAddedEvent.html b/main/OpenHAB/Core/Events/ItemAddedEvent.html index 26e43b1662..e0c5ccc2fb 100644 --- a/main/OpenHAB/Core/Events/ItemAddedEvent.html +++ b/main/OpenHAB/Core/Events/ItemAddedEvent.html @@ -2860,7 +2860,7 @@
Methods inherited from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/Events/ItemCommandEvent.html b/main/OpenHAB/Core/Events/ItemCommandEvent.html index cc70d9c045..1395a825d2 100644 --- a/main/OpenHAB/Core/Events/ItemCommandEvent.html +++ b/main/OpenHAB/Core/Events/ItemCommandEvent.html @@ -4052,7 +4052,7 @@
diff --git a/main/OpenHAB/Core/Events/ItemEvent.html b/main/OpenHAB/Core/Events/ItemEvent.html index c2111ddc62..311aac6fd6 100644 --- a/main/OpenHAB/Core/Events/ItemEvent.html +++ b/main/OpenHAB/Core/Events/ItemEvent.html @@ -2948,7 +2948,7 @@
diff --git a/main/OpenHAB/Core/Events/ItemRemovedEvent.html b/main/OpenHAB/Core/Events/ItemRemovedEvent.html index e0f6cbb448..2a85335de1 100644 --- a/main/OpenHAB/Core/Events/ItemRemovedEvent.html +++ b/main/OpenHAB/Core/Events/ItemRemovedEvent.html @@ -2860,7 +2860,7 @@
Methods inherited from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/Events/ItemState.html b/main/OpenHAB/Core/Events/ItemState.html index 106f6a14b2..d4d29f799e 100644 --- a/main/OpenHAB/Core/Events/ItemState.html +++ b/main/OpenHAB/Core/Events/ItemState.html @@ -3735,7 +3735,7 @@
diff --git a/main/OpenHAB/Core/Events/ItemStateChangedEvent.html b/main/OpenHAB/Core/Events/ItemStateChangedEvent.html index 73da1900b1..c17bcb398a 100644 --- a/main/OpenHAB/Core/Events/ItemStateChangedEvent.html +++ b/main/OpenHAB/Core/Events/ItemStateChangedEvent.html @@ -3793,7 +3793,7 @@
diff --git a/main/OpenHAB/Core/Events/ItemStateEvent.html b/main/OpenHAB/Core/Events/ItemStateEvent.html index 9fc2340041..383161fc7c 100644 --- a/main/OpenHAB/Core/Events/ItemStateEvent.html +++ b/main/OpenHAB/Core/Events/ItemStateEvent.html @@ -2881,7 +2881,7 @@
Methods inherited from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/Events/ItemUpdatedEvent.html b/main/OpenHAB/Core/Events/ItemUpdatedEvent.html index 9dbc5a1882..ffc5866f6b 100644 --- a/main/OpenHAB/Core/Events/ItemUpdatedEvent.html +++ b/main/OpenHAB/Core/Events/ItemUpdatedEvent.html @@ -2860,7 +2860,7 @@
Methods inherited from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/Events/ThingAddedEvent.html b/main/OpenHAB/Core/Events/ThingAddedEvent.html index ab8ece9924..96c7dd7be1 100644 --- a/main/OpenHAB/Core/Events/ThingAddedEvent.html +++ b/main/OpenHAB/Core/Events/ThingAddedEvent.html @@ -2862,7 +2862,7 @@
Methods inherited from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/Events/ThingRemovedEvent.html b/main/OpenHAB/Core/Events/ThingRemovedEvent.html index bc1df24ee5..f6435228cc 100644 --- a/main/OpenHAB/Core/Events/ThingRemovedEvent.html +++ b/main/OpenHAB/Core/Events/ThingRemovedEvent.html @@ -2862,7 +2862,7 @@
Methods inherited from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/Events/ThingStatusInfoChangedEvent.html b/main/OpenHAB/Core/Events/ThingStatusInfoChangedEvent.html index c2fe0f03bb..ceacd61dff 100644 --- a/main/OpenHAB/Core/Events/ThingStatusInfoChangedEvent.html +++ b/main/OpenHAB/Core/Events/ThingStatusInfoChangedEvent.html @@ -3193,7 +3193,7 @@
diff --git a/main/OpenHAB/Core/Events/ThingStatusInfoEvent.html b/main/OpenHAB/Core/Events/ThingStatusInfoEvent.html index 105e49f296..37235f3d67 100644 --- a/main/OpenHAB/Core/Events/ThingStatusInfoEvent.html +++ b/main/OpenHAB/Core/Events/ThingStatusInfoEvent.html @@ -3110,7 +3110,7 @@
diff --git a/main/OpenHAB/Core/Events/ThingUpdatedEvent.html b/main/OpenHAB/Core/Events/ThingUpdatedEvent.html index 4f979ca756..27822c9a63 100644 --- a/main/OpenHAB/Core/Events/ThingUpdatedEvent.html +++ b/main/OpenHAB/Core/Events/ThingUpdatedEvent.html @@ -2862,7 +2862,7 @@
Methods inherited from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/Events/TimerEvent.html b/main/OpenHAB/Core/Events/TimerEvent.html index edef2dc13a..01b2cb4f9d 100644 --- a/main/OpenHAB/Core/Events/TimerEvent.html +++ b/main/OpenHAB/Core/Events/TimerEvent.html @@ -3187,7 +3187,7 @@
diff --git a/main/OpenHAB/Core/Items.html b/main/OpenHAB/Core/Items.html index a8013c197d..c269cbfbba 100644 --- a/main/OpenHAB/Core/Items.html +++ b/main/OpenHAB/Core/Items.html @@ -3832,7 +3832,7 @@
diff --git a/main/OpenHAB/Core/Items/ColorItem.html b/main/OpenHAB/Core/Items/ColorItem.html index b8a10a334d..ab8ce01f5a 100644 --- a/main/OpenHAB/Core/Items/ColorItem.html +++ b/main/OpenHAB/Core/Items/ColorItem.html @@ -3098,7 +3098,7 @@
diff --git a/main/OpenHAB/Core/Items/ContactItem.html b/main/OpenHAB/Core/Items/ContactItem.html index d5498aa76e..9e0a72366b 100644 --- a/main/OpenHAB/Core/Items/ContactItem.html +++ b/main/OpenHAB/Core/Items/ContactItem.html @@ -3063,7 +3063,7 @@
diff --git a/main/OpenHAB/Core/Items/DateTimeItem.html b/main/OpenHAB/Core/Items/DateTimeItem.html index cce14e6cd4..462daee229 100644 --- a/main/OpenHAB/Core/Items/DateTimeItem.html +++ b/main/OpenHAB/Core/Items/DateTimeItem.html @@ -3076,7 +3076,7 @@
diff --git a/main/OpenHAB/Core/Items/DimmerItem.html b/main/OpenHAB/Core/Items/DimmerItem.html index 0d58578787..4af26cb2f7 100644 --- a/main/OpenHAB/Core/Items/DimmerItem.html +++ b/main/OpenHAB/Core/Items/DimmerItem.html @@ -3648,7 +3648,7 @@
diff --git a/main/OpenHAB/Core/Items/GenericItem.html b/main/OpenHAB/Core/Items/GenericItem.html index 786435bbe6..4a3936a6ef 100644 --- a/main/OpenHAB/Core/Items/GenericItem.html +++ b/main/OpenHAB/Core/Items/GenericItem.html @@ -4342,7 +4342,7 @@
diff --git a/main/OpenHAB/Core/Items/GroupFunction.html b/main/OpenHAB/Core/Items/GroupFunction.html index 4d90973047..031b076cd6 100644 --- a/main/OpenHAB/Core/Items/GroupFunction.html +++ b/main/OpenHAB/Core/Items/GroupFunction.html @@ -2998,7 +2998,7 @@
diff --git a/main/OpenHAB/Core/Items/GroupItem.html b/main/OpenHAB/Core/Items/GroupItem.html index fd7b2673e7..ce29fbce07 100644 --- a/main/OpenHAB/Core/Items/GroupItem.html +++ b/main/OpenHAB/Core/Items/GroupItem.html @@ -3748,7 +3748,7 @@
diff --git a/main/OpenHAB/Core/Items/GroupItem/Members.html b/main/OpenHAB/Core/Items/GroupItem/Members.html index e29733cdca..825b27b7d4 100644 --- a/main/OpenHAB/Core/Items/GroupItem/Members.html +++ b/main/OpenHAB/Core/Items/GroupItem/Members.html @@ -3223,7 +3223,7 @@
diff --git a/main/OpenHAB/Core/Items/ImageItem.html b/main/OpenHAB/Core/Items/ImageItem.html index f4e622c9ff..a97275dbd1 100644 --- a/main/OpenHAB/Core/Items/ImageItem.html +++ b/main/OpenHAB/Core/Items/ImageItem.html @@ -3498,7 +3498,7 @@
diff --git a/main/OpenHAB/Core/Items/Item.html b/main/OpenHAB/Core/Items/Item.html index 648d94adb5..b73302b96a 100644 --- a/main/OpenHAB/Core/Items/Item.html +++ b/main/OpenHAB/Core/Items/Item.html @@ -5156,7 +5156,7 @@
diff --git a/main/OpenHAB/Core/Items/LocationItem.html b/main/OpenHAB/Core/Items/LocationItem.html index d6f05b76cc..39c62e8e54 100644 --- a/main/OpenHAB/Core/Items/LocationItem.html +++ b/main/OpenHAB/Core/Items/LocationItem.html @@ -3038,7 +3038,7 @@
diff --git a/main/OpenHAB/Core/Items/Metadata.html b/main/OpenHAB/Core/Items/Metadata.html index 6cb4e9c9c4..8f975e5e39 100644 --- a/main/OpenHAB/Core/Items/Metadata.html +++ b/main/OpenHAB/Core/Items/Metadata.html @@ -2825,7 +2825,7 @@
Overview
diff --git a/main/OpenHAB/Core/Items/Metadata/Hash.html b/main/OpenHAB/Core/Items/Metadata/Hash.html index 96f20c38e1..666aea8248 100644 --- a/main/OpenHAB/Core/Items/Metadata/Hash.html +++ b/main/OpenHAB/Core/Items/Metadata/Hash.html @@ -4372,7 +4372,7 @@diff --git a/main/OpenHAB/Core/Items/Metadata/NamespaceHash.html b/main/OpenHAB/Core/Items/Metadata/NamespaceHash.html index 5705b4db8e..459e6bf808 100644 --- a/main/OpenHAB/Core/Items/Metadata/NamespaceHash.html +++ b/main/OpenHAB/Core/Items/Metadata/NamespaceHash.html @@ -3047,7 +3047,7 @@
diff --git a/main/OpenHAB/Core/Items/Metadata/Provider.html b/main/OpenHAB/Core/Items/Metadata/Provider.html index 0569dcf7a6..c0791fb10a 100644 --- a/main/OpenHAB/Core/Items/Metadata/Provider.html +++ b/main/OpenHAB/Core/Items/Metadata/Provider.html @@ -3093,7 +3093,7 @@
diff --git a/main/OpenHAB/Core/Items/NumberItem.html b/main/OpenHAB/Core/Items/NumberItem.html index 98706d1c64..a081cd7431 100644 --- a/main/OpenHAB/Core/Items/NumberItem.html +++ b/main/OpenHAB/Core/Items/NumberItem.html @@ -3430,7 +3430,7 @@
diff --git a/main/OpenHAB/Core/Items/NumericItem.html b/main/OpenHAB/Core/Items/NumericItem.html index 3dd41d02c8..996580c9f9 100644 --- a/main/OpenHAB/Core/Items/NumericItem.html +++ b/main/OpenHAB/Core/Items/NumericItem.html @@ -2818,7 +2818,7 @@
Overview
diff --git a/main/OpenHAB/Core/Items/Persistence.html b/main/OpenHAB/Core/Items/Persistence.html index e8ea32d832..81499660bd 100644 --- a/main/OpenHAB/Core/Items/Persistence.html +++ b/main/OpenHAB/Core/Items/Persistence.html @@ -6490,7 +6490,7 @@diff --git a/main/OpenHAB/Core/Items/Persistence/HistoricState.html b/main/OpenHAB/Core/Items/Persistence/HistoricState.html index 5bae38ed42..5b4b81488e 100644 --- a/main/OpenHAB/Core/Items/Persistence/HistoricState.html +++ b/main/OpenHAB/Core/Items/Persistence/HistoricState.html @@ -3091,7 +3091,7 @@
diff --git a/main/OpenHAB/Core/Items/PlayerItem.html b/main/OpenHAB/Core/Items/PlayerItem.html index f3953fab26..21e10e8648 100644 --- a/main/OpenHAB/Core/Items/PlayerItem.html +++ b/main/OpenHAB/Core/Items/PlayerItem.html @@ -3108,7 +3108,7 @@
diff --git a/main/OpenHAB/Core/Items/Provider.html b/main/OpenHAB/Core/Items/Provider.html index fc96037f76..b36a0e27c2 100644 --- a/main/OpenHAB/Core/Items/Provider.html +++ b/main/OpenHAB/Core/Items/Provider.html @@ -3182,7 +3182,7 @@
diff --git a/main/OpenHAB/Core/Items/Registry.html b/main/OpenHAB/Core/Items/Registry.html index 55e32a8cfb..2816890c3e 100644 --- a/main/OpenHAB/Core/Items/Registry.html +++ b/main/OpenHAB/Core/Items/Registry.html @@ -3449,7 +3449,7 @@
diff --git a/main/OpenHAB/Core/Items/RollershutterItem.html b/main/OpenHAB/Core/Items/RollershutterItem.html index 018bec4b4e..b07b7de5cc 100644 --- a/main/OpenHAB/Core/Items/RollershutterItem.html +++ b/main/OpenHAB/Core/Items/RollershutterItem.html @@ -3586,7 +3586,7 @@
diff --git a/main/OpenHAB/Core/Items/Semantics.html b/main/OpenHAB/Core/Items/Semantics.html index 37e2916e08..2993da1568 100644 --- a/main/OpenHAB/Core/Items/Semantics.html +++ b/main/OpenHAB/Core/Items/Semantics.html @@ -3635,12 +3635,12 @@
-470 -471 -472+472 +473 +474
# File 'lib/openhab/core/items/semantics.rb', line 470 +# File 'lib/openhab/core/items/semantics.rb', line 472 def equipment Actions::Semantics.get_equipment(self)&.then(&Proxy.method(:new)) @@ -3691,12 +3691,12 @@
-483 -484 -485+485 +486 +487
# File 'lib/openhab/core/items/semantics.rb', line 483 +# File 'lib/openhab/core/items/semantics.rb', line 485 def equipment_type translate_tag(Actions::Semantics.get_equipment_type(self)) @@ -3748,12 +3748,12 @@
-444 -445 -446+446 +447 +448
# File 'lib/openhab/core/items/semantics.rb', line 444 +# File 'lib/openhab/core/items/semantics.rb', line 446 def location Actions::Semantics.get_location(self)&.then(&Proxy.method(:new)) @@ -3804,12 +3804,12 @@
-457 -458 -459+459 +460 +461
# File 'lib/openhab/core/items/semantics.rb', line 457 +# File 'lib/openhab/core/items/semantics.rb', line 459 def location_type translate_tag(Actions::Semantics.get_location_type(self)) @@ -3859,12 +3859,12 @@
-494 -495 -496+496 +497 +498
# File 'lib/openhab/core/items/semantics.rb', line 494 +# File 'lib/openhab/core/items/semantics.rb', line 496 def point_type translate_tag(Actions::Semantics.get_point_type(self)) @@ -3914,12 +3914,12 @@
-505 -506 -507+507 +508 +509
# File 'lib/openhab/core/items/semantics.rb', line 505 +# File 'lib/openhab/core/items/semantics.rb', line 507 def property_type translate_tag(Actions::Semantics.get_property_type(self)) @@ -3972,12 +3972,12 @@
-519 -520 -521+521 +522 +523
# File 'lib/openhab/core/items/semantics.rb', line 519 +# File 'lib/openhab/core/items/semantics.rb', line 521 def semantic_type translate_tag(Actions::Semantics.get_semantic_type(self)) @@ -4288,7 +4288,9 @@+332 +333 +334329 330 331 -332
# File 'lib/openhab/core/items/semantics.rb', line 305 @@ -4299,7 +4301,7 @@raise ArgumentError, "Additional options can only be specified when creating one tag" end - synonyms = Array.wrap(synonyms).map(&:to_s).map(&:strip) + synonyms = Array.wrap(synonyms).map { |s| s.to_s.strip } tags.map do |name, parent| # @deprecated OH4.0.0.M4 missing registry @@ -4308,7 +4310,9 @@
next if lookup(name) next unless parent - new_tag = org.openhab.core.semantics.SemanticTagImpl.new("#{parent.uid}_#{name}", label, description, + new_tag = org.openhab.core.semantics.SemanticTagImpl.new("#{parent.uid}_#{name}", + label, + description, synonyms) Provider.instance.add(new_tag) lookup(name) @@ -4592,12 +4596,12 @@
-410 -411 -412+412 +413 +414
# File 'lib/openhab/core/items/semantics.rb', line 410 +# File 'lib/openhab/core/items/semantics.rb', line 412 def equipment? Actions::Semantics.equipment?(self) @@ -4647,12 +4651,12 @@
-398 -399 -400+400 +401 +402
# File 'lib/openhab/core/items/semantics.rb', line 398 +# File 'lib/openhab/core/items/semantics.rb', line 400 def location? Actions::Semantics.location?(self) @@ -4702,12 +4706,12 @@
-421 -422 -423+423 +424 +425
# File 'lib/openhab/core/items/semantics.rb', line 421 +# File 'lib/openhab/core/items/semantics.rb', line 423 def point? Actions::Semantics.point?(self) @@ -4816,17 +4820,17 @@
-550 -551 552 553 554 555 556 -557+557 +558 +559
# File 'lib/openhab/core/items/semantics.rb', line 550 +# File 'lib/openhab/core/items/semantics.rb', line 552 def points(*point_or_property_types) return members.points(*point_or_property_types) if equipment? || location? @@ -4879,12 +4883,12 @@
-430 -431 -432+432 +433 +434
# File 'lib/openhab/core/items/semantics.rb', line 430 +# File 'lib/openhab/core/items/semantics.rb', line 432 def semantic? !!semantic_type @@ -4899,7 +4903,7 @@diff --git a/main/OpenHAB/Core/Items/Semantics/Provider.html b/main/OpenHAB/Core/Items/Semantics/Provider.html index 0613defd5b..a14757d8ed 100644 --- a/main/OpenHAB/Core/Items/Semantics/Provider.html +++ b/main/OpenHAB/Core/Items/Semantics/Provider.html @@ -2995,7 +2995,7 @@
diff --git a/main/OpenHAB/Core/Items/Semantics/SemanticTag.html b/main/OpenHAB/Core/Items/Semantics/SemanticTag.html index 030a026e6d..c8f98d4bef 100644 --- a/main/OpenHAB/Core/Items/Semantics/SemanticTag.html +++ b/main/OpenHAB/Core/Items/Semantics/SemanticTag.html @@ -3607,7 +3607,7 @@
diff --git a/main/OpenHAB/Core/Items/Semantics/TagClassMethods.html b/main/OpenHAB/Core/Items/Semantics/TagClassMethods.html index 04e1685cae..b031f8eedb 100644 --- a/main/OpenHAB/Core/Items/Semantics/TagClassMethods.html +++ b/main/OpenHAB/Core/Items/Semantics/TagClassMethods.html @@ -3232,7 +3232,7 @@
diff --git a/main/OpenHAB/Core/Items/StateStorage.html b/main/OpenHAB/Core/Items/StateStorage.html index 099904c7d4..72b38d2721 100644 --- a/main/OpenHAB/Core/Items/StateStorage.html +++ b/main/OpenHAB/Core/Items/StateStorage.html @@ -3057,7 +3057,7 @@
diff --git a/main/OpenHAB/Core/Items/StringItem.html b/main/OpenHAB/Core/Items/StringItem.html index 96b7fadfc6..adf7959ab4 100644 --- a/main/OpenHAB/Core/Items/StringItem.html +++ b/main/OpenHAB/Core/Items/StringItem.html @@ -3025,7 +3025,7 @@
diff --git a/main/OpenHAB/Core/Items/SwitchItem.html b/main/OpenHAB/Core/Items/SwitchItem.html index ff6c7e77ac..ca3079b93c 100644 --- a/main/OpenHAB/Core/Items/SwitchItem.html +++ b/main/OpenHAB/Core/Items/SwitchItem.html @@ -3519,7 +3519,7 @@
diff --git a/main/OpenHAB/Core/LazyArray.html b/main/OpenHAB/Core/LazyArray.html index 8d4087499f..6810c5820e 100644 --- a/main/OpenHAB/Core/LazyArray.html +++ b/main/OpenHAB/Core/LazyArray.html @@ -3078,7 +3078,7 @@
diff --git a/main/OpenHAB/Core/Provider.html b/main/OpenHAB/Core/Provider.html index d7c63251dc..9564329a9b 100644 --- a/main/OpenHAB/Core/Provider.html +++ b/main/OpenHAB/Core/Provider.html @@ -3547,7 +3547,7 @@
diff --git a/main/OpenHAB/Core/Proxy/EventSubscriber.html b/main/OpenHAB/Core/Proxy/EventSubscriber.html index 6c1a922e0c..1025cec6a9 100644 --- a/main/OpenHAB/Core/Proxy/EventSubscriber.html +++ b/main/OpenHAB/Core/Proxy/EventSubscriber.html @@ -3296,7 +3296,7 @@
diff --git a/main/OpenHAB/Core/Registry.html b/main/OpenHAB/Core/Registry.html index e759f7fa6c..dbdfc0e816 100644 --- a/main/OpenHAB/Core/Registry.html +++ b/main/OpenHAB/Core/Registry.html @@ -3052,7 +3052,7 @@
diff --git a/main/OpenHAB/Core/Rules.html b/main/OpenHAB/Core/Rules.html index d52ecf6b0f..fab26da0e5 100644 --- a/main/OpenHAB/Core/Rules.html +++ b/main/OpenHAB/Core/Rules.html @@ -2955,7 +2955,7 @@
diff --git a/main/OpenHAB/Core/Rules/Provider.html b/main/OpenHAB/Core/Rules/Provider.html index 72f17f53d7..60c491d5a4 100644 --- a/main/OpenHAB/Core/Rules/Provider.html +++ b/main/OpenHAB/Core/Rules/Provider.html @@ -2980,7 +2980,7 @@
diff --git a/main/OpenHAB/Core/Rules/Registry.html b/main/OpenHAB/Core/Rules/Registry.html index 23121185b3..56dd1483de 100644 --- a/main/OpenHAB/Core/Rules/Registry.html +++ b/main/OpenHAB/Core/Rules/Registry.html @@ -3486,7 +3486,7 @@
diff --git a/main/OpenHAB/Core/Rules/Rule.html b/main/OpenHAB/Core/Rules/Rule.html index b48d263241..3194eeaea8 100644 --- a/main/OpenHAB/Core/Rules/Rule.html +++ b/main/OpenHAB/Core/Rules/Rule.html @@ -4437,7 +4437,7 @@
diff --git a/main/OpenHAB/Core/Rules/TaggedArray.html b/main/OpenHAB/Core/Rules/TaggedArray.html index 3edd7a9282..783231de3e 100644 --- a/main/OpenHAB/Core/Rules/TaggedArray.html +++ b/main/OpenHAB/Core/Rules/TaggedArray.html @@ -3133,7 +3133,7 @@
diff --git a/main/OpenHAB/Core/ScriptHandling.html b/main/OpenHAB/Core/ScriptHandling.html index 3c3f8c3fc8..97188c3186 100644 --- a/main/OpenHAB/Core/ScriptHandling.html +++ b/main/OpenHAB/Core/ScriptHandling.html @@ -3018,7 +3018,7 @@
diff --git a/main/OpenHAB/Core/Things.html b/main/OpenHAB/Core/Things.html index ac76648e50..bee68f1bcc 100644 --- a/main/OpenHAB/Core/Things.html +++ b/main/OpenHAB/Core/Things.html @@ -2855,7 +2855,7 @@
diff --git a/main/OpenHAB/Core/Things/Channel.html b/main/OpenHAB/Core/Things/Channel.html index 6cdd22f8f0..043b816bd1 100644 --- a/main/OpenHAB/Core/Things/Channel.html +++ b/main/OpenHAB/Core/Things/Channel.html @@ -3495,7 +3495,7 @@
diff --git a/main/OpenHAB/Core/Things/ChannelUID.html b/main/OpenHAB/Core/Things/ChannelUID.html index 880afbe412..2653d562d3 100644 --- a/main/OpenHAB/Core/Things/ChannelUID.html +++ b/main/OpenHAB/Core/Things/ChannelUID.html @@ -3095,7 +3095,7 @@
diff --git a/main/OpenHAB/Core/Things/ItemChannelLink.html b/main/OpenHAB/Core/Things/ItemChannelLink.html index b156ecd88e..0ef12bc126 100644 --- a/main/OpenHAB/Core/Things/ItemChannelLink.html +++ b/main/OpenHAB/Core/Things/ItemChannelLink.html @@ -3130,7 +3130,7 @@
diff --git a/main/OpenHAB/Core/Things/Links.html b/main/OpenHAB/Core/Things/Links.html index 56ec1339a8..554e3b8ebc 100644 --- a/main/OpenHAB/Core/Things/Links.html +++ b/main/OpenHAB/Core/Things/Links.html @@ -2823,7 +2823,7 @@
Overview
diff --git a/main/OpenHAB/Core/Things/Links/Provider.html b/main/OpenHAB/Core/Things/Links/Provider.html index 7e65a8d09e..12d98c9c64 100644 --- a/main/OpenHAB/Core/Things/Links/Provider.html +++ b/main/OpenHAB/Core/Things/Links/Provider.html @@ -3231,7 +3231,7 @@diff --git a/main/OpenHAB/Core/Things/ProfileCallback.html b/main/OpenHAB/Core/Things/ProfileCallback.html index 073d1d41d5..3b6766728c 100644 --- a/main/OpenHAB/Core/Things/ProfileCallback.html +++ b/main/OpenHAB/Core/Things/ProfileCallback.html @@ -3056,7 +3056,7 @@
diff --git a/main/OpenHAB/Core/Things/Provider.html b/main/OpenHAB/Core/Things/Provider.html index 3777857b92..2c8c393373 100644 --- a/main/OpenHAB/Core/Things/Provider.html +++ b/main/OpenHAB/Core/Things/Provider.html @@ -3060,7 +3060,7 @@
diff --git a/main/OpenHAB/Core/Things/Registry.html b/main/OpenHAB/Core/Things/Registry.html index 3daa171245..fc7a396cf2 100644 --- a/main/OpenHAB/Core/Things/Registry.html +++ b/main/OpenHAB/Core/Things/Registry.html @@ -3324,7 +3324,7 @@
diff --git a/main/OpenHAB/Core/Things/Thing.html b/main/OpenHAB/Core/Things/Thing.html index 764030613a..76108529b2 100644 --- a/main/OpenHAB/Core/Things/Thing.html +++ b/main/OpenHAB/Core/Things/Thing.html @@ -6205,7 +6205,7 @@
diff --git a/main/OpenHAB/Core/Things/Thing/ChannelsArray.html b/main/OpenHAB/Core/Things/Thing/ChannelsArray.html index 14e1dce12d..e20aab0529 100644 --- a/main/OpenHAB/Core/Things/Thing/ChannelsArray.html +++ b/main/OpenHAB/Core/Things/Thing/ChannelsArray.html @@ -2955,7 +2955,7 @@
diff --git a/main/OpenHAB/Core/Timer.html b/main/OpenHAB/Core/Timer.html index c94d93689f..9274ad5ddd 100644 --- a/main/OpenHAB/Core/Timer.html +++ b/main/OpenHAB/Core/Timer.html @@ -3605,7 +3605,7 @@
diff --git a/main/OpenHAB/Core/Types.html b/main/OpenHAB/Core/Types.html index c52493ad41..12b247c4de 100644 --- a/main/OpenHAB/Core/Types.html +++ b/main/OpenHAB/Core/Types.html @@ -2840,7 +2840,7 @@
Overview
diff --git a/main/OpenHAB/Core/Types/Command.html b/main/OpenHAB/Core/Types/Command.html index 86ff3f66d1..89719f99ac 100644 --- a/main/OpenHAB/Core/Types/Command.html +++ b/main/OpenHAB/Core/Types/Command.html @@ -2834,7 +2834,7 @@Methods included from yard 0.9.28 (ruby-3.1.3). diff --git a/main/OpenHAB/Core/Types/DateTimeType.html b/main/OpenHAB/Core/Types/DateTimeType.html index aa2e2d48fa..aaa1d13eb0 100644 --- a/main/OpenHAB/Core/Types/DateTimeType.html +++ b/main/OpenHAB/Core/Types/DateTimeType.html @@ -3335,15 +3335,15 @@
-207 208 209 210 211 -212+212 +213
# File 'lib/openhab/core/types/date_time_type.rb', line 207 +# File 'lib/openhab/core/types/date_time_type.rb', line 208 def method_missing(method, *args, &block) return zoned_date_time.send(method, *args, &block) if zoned_date_time.respond_to?(method) @@ -3507,7 +3507,6 @@
-219 220 221 222 @@ -3517,10 +3516,11 @@+229 +230226 227 228 -229
# File 'lib/openhab/core/types/date_time_type.rb', line 219 +# File 'lib/openhab/core/types/date_time_type.rb', line 220 def +(other) if other.is_a?(Duration) @@ -3595,7 +3595,6 @@
-242 243 244 245 @@ -3607,10 +3606,11 @@+254 +255251 252 253 -254
# File 'lib/openhab/core/types/date_time_type.rb', line 242 +# File 'lib/openhab/core/types/date_time_type.rb', line 243 def -(other) if other.is_a?(Duration) @@ -3788,7 +3788,8 @@+148 +149145 146 147 -148
# File 'lib/openhab/core/types/date_time_type.rb', line 144 @@ -3796,7 +3797,8 @@def coerce(other) logger.trace("Coercing #{self} as a request from #{other.class}") return [other, zoned_date_time] if other.respond_to?(:to_zoned_date_time) - return [DateTimeType.new(other), self] if other.respond_to?(:to_time) + + [DateTimeType.new(other), self] if other.respond_to?(:to_time) end
-155 156 -157+157 +158
# File 'lib/openhab/core/types/date_time_type.rb', line 155 +# File 'lib/openhab/core/types/date_time_type.rb', line 156 def to_f zoned_date_time.to_epoch_second + (zoned_date_time.nano / 1_000_000_000) @@ -4038,12 +4040,12 @@
-173 174 -175+175 +176
# File 'lib/openhab/core/types/date_time_type.rb', line 173 +# File 'lib/openhab/core/types/date_time_type.rb', line 174 def utc? utc_offset.zero? @@ -4095,12 +4097,12 @@
-164 165 -166+166 +167
# File 'lib/openhab/core/types/date_time_type.rb', line 164 +# File 'lib/openhab/core/types/date_time_type.rb', line 165 def utc_offset zoned_date_time.offset.total_seconds @@ -4152,12 +4154,12 @@
-182 183 -184+184 +185
# File 'lib/openhab/core/types/date_time_type.rb', line 182 +# File 'lib/openhab/core/types/date_time_type.rb', line 183 def wday zoned_date_time.day_of_week.value % 7 @@ -4209,12 +4211,12 @@
-191 192 -193+193 +194
# File 'lib/openhab/core/types/date_time_type.rb', line 191 +# File 'lib/openhab/core/types/date_time_type.rb', line 192 def zone zoned_date_time.zone.id @@ -4229,7 +4231,7 @@+32 +33diff --git a/main/OpenHAB/Core/Types/DecimalType.html b/main/OpenHAB/Core/Types/DecimalType.html index bb5aebf1b0..af969f3b22 100644 --- a/main/OpenHAB/Core/Types/DecimalType.html +++ b/main/OpenHAB/Core/Types/DecimalType.html @@ -3432,7 +3432,7 @@
diff --git a/main/OpenHAB/Core/Types/HSBType.html b/main/OpenHAB/Core/Types/HSBType.html index 3e860103e3..b0508e1d73 100644 --- a/main/OpenHAB/Core/Types/HSBType.html +++ b/main/OpenHAB/Core/Types/HSBType.html @@ -4372,7 +4372,7 @@
diff --git a/main/OpenHAB/Core/Types/IncreaseDecreaseType.html b/main/OpenHAB/Core/Types/IncreaseDecreaseType.html index 4dedd99a59..95e070513f 100644 --- a/main/OpenHAB/Core/Types/IncreaseDecreaseType.html +++ b/main/OpenHAB/Core/Types/IncreaseDecreaseType.html @@ -3055,7 +3055,7 @@
diff --git a/main/OpenHAB/Core/Types/NextPreviousType.html b/main/OpenHAB/Core/Types/NextPreviousType.html index 2e926ed871..034e2e482f 100644 --- a/main/OpenHAB/Core/Types/NextPreviousType.html +++ b/main/OpenHAB/Core/Types/NextPreviousType.html @@ -3055,7 +3055,7 @@
diff --git a/main/OpenHAB/Core/Types/NumericType.html b/main/OpenHAB/Core/Types/NumericType.html index 6b74589fb8..33b9fdabf9 100644 --- a/main/OpenHAB/Core/Types/NumericType.html +++ b/main/OpenHAB/Core/Types/NumericType.html @@ -3206,7 +3206,7 @@
diff --git a/main/OpenHAB/Core/Types/OnOffType.html b/main/OpenHAB/Core/Types/OnOffType.html index dfde2a31e3..6b8dc4bbf0 100644 --- a/main/OpenHAB/Core/Types/OnOffType.html +++ b/main/OpenHAB/Core/Types/OnOffType.html @@ -3148,7 +3148,7 @@
diff --git a/main/OpenHAB/Core/Types/OpenClosedType.html b/main/OpenHAB/Core/Types/OpenClosedType.html index e5cc81b577..2afb367cae 100644 --- a/main/OpenHAB/Core/Types/OpenClosedType.html +++ b/main/OpenHAB/Core/Types/OpenClosedType.html @@ -3020,14 +3020,16 @@
29 30 31 -32
# File 'lib/openhab/core/types/open_closed_type.rb', line 29 def ! return CLOSED if open? - return OPEN if closed? + + OPEN if closed? end
# File 'lib/openhab/core/types/up_down_type.rb', line 38 def ! return UP if down? - return DOWN if up? + + DOWN if up? end
# File 'lib/openhab/core/value_cache.rb', line 109 def assoc(key) - [key, fetch(key) do - # return nil directly, without storing a value to the cache - return nil - end] + [key, + fetch(key) do + # return nil directly, without storing a value to the cache + return nil + end] end
-117 118 119 -120+120 +121
# File 'lib/openhab/core/value_cache.rb', line 117 +# File 'lib/openhab/core/value_cache.rb', line 118 def dig(key, *identifiers) r = fetch(key) { return nil } @@ -3641,7 +3643,6 @@
-123 124 125 126 @@ -3653,10 +3654,11 @@+135 +136132 133 134 -135
# File 'lib/openhab/core/value_cache.rb', line 123 +# File 'lib/openhab/core/value_cache.rb', line 124 def fetch_values(*keys, &block) result = [] @@ -3724,12 +3726,12 @@
-138 139 -140+140 +141
# File 'lib/openhab/core/value_cache.rb', line 138 +# File 'lib/openhab/core/value_cache.rb', line 139 def key?(key) !!fetch(key) { return false } @@ -3774,7 +3776,6 @@
-146 147 148 149 @@ -3790,10 +3791,11 @@+162 +163159 160 161 -162
# File 'lib/openhab/core/value_cache.rb', line 146 +# File 'lib/openhab/core/value_cache.rb', line 147 def merge!(*other_hashes) other_hashes.each do |hash| @@ -3848,17 +3850,17 @@
-166 167 168 169 170 171 172 -173+173 +174
# File 'lib/openhab/core/value_cache.rb', line 166 +# File 'lib/openhab/core/value_cache.rb', line 167 def slice(*keys) result = {} @@ -3904,12 +3906,12 @@
-176 177 -178+178 +179
# File 'lib/openhab/core/value_cache.rb', line 176 +# File 'lib/openhab/core/value_cache.rb', line 177 def to_proc @to_proc ||= ->(k) { self[k] } @@ -3950,14 +3952,14 @@
-181 182 183 184 -185+185 +186
# File 'lib/openhab/core/value_cache.rb', line 181 +# File 'lib/openhab/core/value_cache.rb', line 182 def values_at(*keys) keys.map do |k| @@ -3974,7 +3976,7 @@+68 +69diff --git a/main/OpenHAB/CoreExt.html b/main/OpenHAB/CoreExt.html index 55289c9102..14ea2721d7 100644 --- a/main/OpenHAB/CoreExt.html +++ b/main/OpenHAB/CoreExt.html @@ -2825,7 +2825,7 @@
Overview
diff --git a/main/OpenHAB/CoreExt/Between.html b/main/OpenHAB/CoreExt/Between.html index 0e7f43f32e..2cf274e8ea 100644 --- a/main/OpenHAB/CoreExt/Between.html +++ b/main/OpenHAB/CoreExt/Between.html @@ -3034,7 +3034,7 @@diff --git a/main/OpenHAB/CoreExt/Ephemeris.html b/main/OpenHAB/CoreExt/Ephemeris.html index 9bd133d721..a7ebdb935d 100644 --- a/main/OpenHAB/CoreExt/Ephemeris.html +++ b/main/OpenHAB/CoreExt/Ephemeris.html @@ -3477,7 +3477,7 @@
diff --git a/main/OpenHAB/CoreExt/Java.html b/main/OpenHAB/CoreExt/Java.html index e69bd4b07f..f71829574d 100644 --- a/main/OpenHAB/CoreExt/Java.html +++ b/main/OpenHAB/CoreExt/Java.html @@ -2827,7 +2827,7 @@
Overview
diff --git a/main/OpenHAB/CoreExt/Java/Class.html b/main/OpenHAB/CoreExt/Java/Class.html index 1dc2d48abf..db3a6dd717 100644 --- a/main/OpenHAB/CoreExt/Java/Class.html +++ b/main/OpenHAB/CoreExt/Java/Class.html @@ -3008,7 +3008,7 @@diff --git a/main/OpenHAB/CoreExt/Java/Duration.html b/main/OpenHAB/CoreExt/Java/Duration.html index b75854c420..9f635a5fdc 100644 --- a/main/OpenHAB/CoreExt/Java/Duration.html +++ b/main/OpenHAB/CoreExt/Java/Duration.html @@ -3123,14 +3123,16 @@
65 66 67 -68
# File 'lib/openhab/core_ext/java/duration.rb', line 65 def coerce(other) return [other.seconds, self] if other.is_a?(Numeric) - return [other.to_i.seconds, self] if other.is_a?(Period) + + [other.to_i.seconds, self] if other.is_a?(Period) end
# File 'lib/openhab/core_ext/java/local_time.rb', line 55 @@ -3209,12 +3211,14 @@return raw_parse(string, formatter) if formatter format = /(am|pm)$/i.match?(string) ? "h[:mm[:ss][.S]][ ]a" : "H[:mm[:ss][.S]]" - java_send(:parse, [java.lang.CharSequence, java.time.format.DateTimeFormatter], - string, java.time.format.DateTimeFormatterBuilder.new - .parse_case_insensitive - .parse_lenient - .append_pattern(format) - .to_formatter(java.util.Locale::ENGLISH)) + java_send(:parse, + [java.lang.CharSequence, java.time.format.DateTimeFormatter], + string, + java.time.format.DateTimeFormatterBuilder.new + .parse_case_insensitive + .parse_lenient + .append_pattern(format) + .to_formatter(java.util.Locale::ENGLISH)) end
-81 -82 83 84 85 -86+86 +87 +88
# File 'lib/openhab/core_ext/java/local_time.rb', line 81 +# File 'lib/openhab/core_ext/java/local_time.rb', line 83 def +(other) return plus(other.seconds) if other.is_a?(Numeric) @@ -3360,15 +3364,15 @@
-71 -72 73 74 75 -76+76 +77 +78
# File 'lib/openhab/core_ext/java/local_time.rb', line 71 +# File 'lib/openhab/core_ext/java/local_time.rb', line 73 def -(other) return minus(other.seconds) if other.is_a?(Numeric) @@ -3420,12 +3424,12 @@
-95 -96 -97+97 +98 +99
# File 'lib/openhab/core_ext/java/local_time.rb', line 95 +# File 'lib/openhab/core_ext/java/local_time.rb', line 97 def succ plus_seconds(1) @@ -3472,12 +3476,12 @@
-100 -101 -102+102 +103 +104
# File 'lib/openhab/core_ext/java/local_time.rb', line 100 +# File 'lib/openhab/core_ext/java/local_time.rb', line 102 def to_local_time self @@ -3546,13 +3550,13 @@
-108 -109 110 -111+111 +112 +113
# File 'lib/openhab/core_ext/java/local_time.rb', line 108 +# File 'lib/openhab/core_ext/java/local_time.rb', line 110 def to_zoned_date_time(context = nil) context ||= ZonedDateTime.now @@ -3568,7 +3572,7 @@+27 +28diff --git a/main/OpenHAB/CoreExt/Java/Month.html b/main/OpenHAB/CoreExt/Java/Month.html index 48129ed6e1..5b4851e5f9 100644 --- a/main/OpenHAB/CoreExt/Java/Month.html +++ b/main/OpenHAB/CoreExt/Java/Month.html @@ -3502,7 +3502,7 @@
diff --git a/main/OpenHAB/CoreExt/Java/MonthDay.html b/main/OpenHAB/CoreExt/Java/MonthDay.html index 099e218daf..fdf3ecaec4 100644 --- a/main/OpenHAB/CoreExt/Java/MonthDay.html +++ b/main/OpenHAB/CoreExt/Java/MonthDay.html @@ -3180,14 +3180,16 @@
24 25 26 -27
# File 'lib/openhab/core_ext/java/month_day.rb', line 22 def parse(string) logger.trace("#{self.class}.parse #{string} (#{string.class})") - java_send(:parse, [java.lang.CharSequence, java.time.format.DateTimeFormatter], + java_send(:parse, + [java.lang.CharSequence, java.time.format.DateTimeFormatter], string.to_s, java.time.format.DateTimeFormatter.ofPattern("[--]M-d")) end@@ -3239,17 +3241,17 @@
-41 42 43 44 45 46 47 -48+48 +49
# File 'lib/openhab/core_ext/java/month_day.rb', line 41 +# File 'lib/openhab/core_ext/java/month_day.rb', line 42 def +(other) case other @@ -3301,7 +3303,6 @@
-51 52 53 54 @@ -3311,10 +3312,11 @@+61 +6258 59 60 -61
# File 'lib/openhab/core_ext/java/month_day.rb', line 51 +# File 'lib/openhab/core_ext/java/month_day.rb', line 52 def -(other) d = case other @@ -3371,7 +3373,6 @@
-70 71 72 73 @@ -3379,10 +3380,11 @@+78 +7975 76 77 -78
# File 'lib/openhab/core_ext/java/month_day.rb', line 70 +# File 'lib/openhab/core_ext/java/month_day.rb', line 71 def succ if day_of_month == month.max_length @@ -3457,13 +3459,13 @@
-97 98 99 -100+100 +101
# File 'lib/openhab/core_ext/java/month_day.rb', line 97 +# File 'lib/openhab/core_ext/java/month_day.rb', line 98 def to_date(context = nil) context ||= Date.today @@ -3533,14 +3535,14 @@
-84 85 86 87 -88+88 +89
# File 'lib/openhab/core_ext/java/month_day.rb', line 84 +# File 'lib/openhab/core_ext/java/month_day.rb', line 85 def to_local_date(context = nil) context ||= java.time.Year.now @@ -3589,10 +3591,10 @@
-91+92
# File 'lib/openhab/core_ext/java/month_day.rb', line 91 +# File 'lib/openhab/core_ext/java/month_day.rb', line 92 alias_method :to_month, :month
-103 104 -105+105 +106
# File 'lib/openhab/core_ext/java/month_day.rb', line 103 +# File 'lib/openhab/core_ext/java/month_day.rb', line 104 def to_month_day self @@ -3693,13 +3695,13 @@
-31 32 33 -34+34 +35
# File 'lib/openhab/core_ext/java/month_day.rb', line 31 +# File 'lib/openhab/core_ext/java/month_day.rb', line 32 def to_s # Remove -- from MonthDay string representation @@ -3769,12 +3771,12 @@
-111 112 -113+113 +114
# File 'lib/openhab/core_ext/java/month_day.rb', line 111 +# File 'lib/openhab/core_ext/java/month_day.rb', line 112 def to_zoned_date_time(context = nil) to_local_date(context).to_zoned_date_time(context) @@ -3789,7 +3791,7 @@diff --git a/main/OpenHAB/CoreExt/Java/Period.html b/main/OpenHAB/CoreExt/Java/Period.html index 79767c0934..2beeb6be45 100644 --- a/main/OpenHAB/CoreExt/Java/Period.html +++ b/main/OpenHAB/CoreExt/Java/Period.html @@ -3067,7 +3067,7 @@
# File 'lib/openhab/core_ext/java/period.rb', line 49 def coerce(other) - return [other.seconds, to_i.seconds] if other.is_a?(Numeric) + [other.seconds, to_i.seconds] if other.is_a?(Numeric) end
-599 -600 601 602 603 604 605 606 -607+607 +608 +609
# File 'lib/openhab/dsl/items/builder.rb', line 599 +# File 'lib/openhab/dsl/items/builder.rb', line 601 def initialize(*args, type: nil, function: nil, thing: nil, **kwargs) raise ArgumentError, "invalid function #{function}" if function && !function.match?(FUNCTION_REGEX) @@ -3559,12 +3559,12 @@
-580 -581 -582+582 +583 +584
# File 'lib/openhab/dsl/items/builder.rb', line 580 +# File 'lib/openhab/dsl/items/builder.rb', line 582 def function @function @@ -3614,12 +3614,12 @@
-589 -590 -591+591 +592 +593
# File 'lib/openhab/dsl/items/builder.rb', line 589 +# File 'lib/openhab/dsl/items/builder.rb', line 591 def label_base @label_base @@ -3669,12 +3669,12 @@
-592 -593 -594+594 +595 +596
# File 'lib/openhab/dsl/items/builder.rb', line 592 +# File 'lib/openhab/dsl/items/builder.rb', line 594 def members @members @@ -3724,12 +3724,12 @@
-586 -587 -588+588 +589 +590
# File 'lib/openhab/dsl/items/builder.rb', line 586 +# File 'lib/openhab/dsl/items/builder.rb', line 588 def name_base @name_base @@ -3779,12 +3779,12 @@
-583 -584 -585+585 +586 +587
# File 'lib/openhab/dsl/items/builder.rb', line 583 +# File 'lib/openhab/dsl/items/builder.rb', line 585 def thing @thing @@ -3836,12 +3836,12 @@
-561 -562 -563+563 +564 +565
# File 'lib/openhab/dsl/items/builder.rb', line 561 +# File 'lib/openhab/dsl/items/builder.rb', line 563 def unit @unit @@ -3857,7 +3857,7 @@+334 +335 +336diff --git a/main/OpenHAB/DSL/Items/ItemBuilder.html b/main/OpenHAB/DSL/Items/ItemBuilder.html index 4e8bd4ab9a..628057aba6 100644 --- a/main/OpenHAB/DSL/Items/ItemBuilder.html +++ b/main/OpenHAB/DSL/Items/ItemBuilder.html @@ -3817,12 +3817,16 @@
331 332 333 -334
# File 'lib/openhab/dsl/items/builder.rb', line 273 -def initialize(type, name = nil, label = nil, +def initialize(type, + name = nil, + label = nil, provider:, dimension: nil, unit: nil, @@ -4699,7 +4703,7 @@
# File 'lib/openhab/dsl/items/builder.rb', line 371
+ # File 'lib/openhab/dsl/items/builder.rb', line 373
-424 -425 426 -427+427 +428 +429
# File 'lib/openhab/dsl/items/builder.rb', line 424 +# File 'lib/openhab/dsl/items/builder.rb', line 426 def channel(channel, config = {}) channel = "#{@thing}:#{channel}" if @thing && !channel.include?(":") @@ -4862,8 +4866,6 @@
-449 -450 451 452 453 @@ -4880,10 +4882,12 @@+467 +468 +469464 465 466 -467
# File 'lib/openhab/dsl/items/builder.rb', line 449 +# File 'lib/openhab/dsl/items/builder.rb', line 451 def expire(*args, command: nil, state: nil) unless (0..2).cover?(args.length) @@ -4980,7 +4984,7 @@
# File 'lib/openhab/dsl/items/builder.rb', line 382
+ # File 'lib/openhab/dsl/items/builder.rb', line 384
-361 -362 363 364 365 366 367 368 -369+369 +370 +371
# File 'lib/openhab/dsl/items/builder.rb', line 361 +# File 'lib/openhab/dsl/items/builder.rb', line 363 def group(*groups) unless groups.all? do |group| @@ -5123,15 +5127,15 @@
-404 -405 406 407 408 -409+409 +410 +411
# File 'lib/openhab/dsl/items/builder.rb', line 404 +# File 'lib/openhab/dsl/items/builder.rb', line 406 %i[alexa ga homekit].each do |shortcut| define_method(shortcut) do |value = nil, config = nil| @@ -5181,17 +5185,17 @@
-524 -525 526 527 528 529 530 -531+531 +532 +533
# File 'lib/openhab/dsl/items/builder.rb', line 524 +# File 'lib/openhab/dsl/items/builder.rb', line 526 def inspect s = "#<OpenHAB::Core::Items::#{inspect_type}ItemBuilder#{type_details} #{name} #{label.inspect}" @@ -5246,12 +5250,12 @@
-351 -352 -353+353 +354 +355
# File 'lib/openhab/dsl/items/builder.rb', line 351 +# File 'lib/openhab/dsl/items/builder.rb', line 353 def tag(*tags) @tags += self.class.normalize_tags(*tags) @@ -5299,12 +5303,12 @@
-341 -342 -343+343 +344 +345
# File 'lib/openhab/dsl/items/builder.rb', line 341 +# File 'lib/openhab/dsl/items/builder.rb', line 343 def to_s label || name @@ -5319,7 +5323,7 @@+83 +84diff --git a/main/OpenHAB/DSL/Items/TimedCommand.html b/main/OpenHAB/DSL/Items/TimedCommand.html index 008aba8157..8cde1476ad 100644 --- a/main/OpenHAB/DSL/Items/TimedCommand.html +++ b/main/OpenHAB/DSL/Items/TimedCommand.html @@ -3156,7 +3156,7 @@
diff --git a/main/OpenHAB/DSL/Items/TimedCommand/TimedCommandDetails.html b/main/OpenHAB/DSL/Items/TimedCommand/TimedCommandDetails.html index c87e07e9a4..85eef9629d 100644 --- a/main/OpenHAB/DSL/Items/TimedCommand/TimedCommandDetails.html +++ b/main/OpenHAB/DSL/Items/TimedCommand/TimedCommandDetails.html @@ -3001,7 +3001,7 @@
diff --git a/main/OpenHAB/DSL/Rules.html b/main/OpenHAB/DSL/Rules.html index 65f6627432..df13a1c9fc 100644 --- a/main/OpenHAB/DSL/Rules.html +++ b/main/OpenHAB/DSL/Rules.html @@ -2827,7 +2827,7 @@
Overview
diff --git a/main/OpenHAB/DSL/Rules/Builder.html b/main/OpenHAB/DSL/Rules/Builder.html index 383c5fa03a..40a6d2e28e 100644 --- a/main/OpenHAB/DSL/Rules/Builder.html +++ b/main/OpenHAB/DSL/Rules/Builder.html @@ -3271,7 +3271,8 @@80 81 82 -83
# File 'lib/openhab/dsl/rules/builder.rb', line 61 @@ -3288,7 +3289,8 @@builder = BuilderDSL.new(binding || block.binding) builder.uid(id) builder.instance_exec(builder, &block) - builder.guard = Guard.new(run_context: builder.caller, only_if: builder.only_if, + builder.guard = Guard.new(run_context: builder.caller, + only_if: builder.only_if, not_if: builder.not_if) name ||= NameInference.infer_rule_name(builder) @@ -3412,7 +3414,6 @@
-126 127 128 129 @@ -3429,10 +3430,11 @@+143 +144140 141 142 -143
# File 'lib/openhab/dsl/rules/builder.rb', line 126 +# File 'lib/openhab/dsl/rules/builder.rb', line 127 def scene(name = nil, id: nil, script: nil, &block) raise ArgumentError, "Block is required" unless block @@ -3565,7 +3567,6 @@
-96 97 98 99 @@ -3582,10 +3583,11 @@+113 +114110 111 112 -113
# File 'lib/openhab/dsl/rules/builder.rb', line 96 +# File 'lib/openhab/dsl/rules/builder.rb', line 97 def script(name = nil, id: nil, script: nil, &block) raise ArgumentError, "Block is required" unless block @@ -3615,7 +3617,7 @@diff --git a/main/OpenHAB/DSL/Rules/BuilderDSL.html b/main/OpenHAB/DSL/Rules/BuilderDSL.html index 14a2a93b35..e9680c393c 100644 --- a/main/OpenHAB/DSL/Rules/BuilderDSL.html +++ b/main/OpenHAB/DSL/Rules/BuilderDSL.html @@ -3958,13 +3958,13 @@
-1592 -1593 -1594 -1595+1597 +1598 +1599 +1600
# File 'lib/openhab/dsl/rules/builder.rb', line 1592 +# File 'lib/openhab/dsl/rules/builder.rb', line 1597 def at(item) item = item.name if item.is_a?(Item) @@ -4082,10 +4082,10 @@
-519+520
# File 'lib/openhab/dsl/rules/builder.rb', line 519 +# File 'lib/openhab/dsl/rules/builder.rb', line 520 prop :between
-1033 1034 1035 1036 @@ -4349,10 +4348,11 @@+1061 +10621058 1059 1060 -1061
# File 'lib/openhab/dsl/rules/builder.rb', line 1033 +# File 'lib/openhab/dsl/rules/builder.rb', line 1034 def changed(*items, to: nil, from: nil, for: nil, attach: nil) changed = Changed.new(rule_triggers: @rule_triggers) @@ -4561,7 +4561,6 @@
-890 891 892 893 @@ -4571,10 +4570,11 @@+900 +901897 898 899 -900
# File 'lib/openhab/dsl/rules/builder.rb', line 890 +# File 'lib/openhab/dsl/rules/builder.rb', line 891 def channel(*channels, thing: nil, triggered: nil, attach: nil) channel_trigger = Channel.new(rule_triggers: @rule_triggers) @@ -4651,13 +4651,13 @@
-915 916 917 -918+918 +919
# File 'lib/openhab/dsl/rules/builder.rb', line 915 +# File 'lib/openhab/dsl/rules/builder.rb', line 916 def channel_linked(attach: nil) @ruby_triggers << [:channel_linked] @@ -4729,13 +4729,13 @@
-936 937 938 -939+939 +940
# File 'lib/openhab/dsl/rules/builder.rb', line 936 +# File 'lib/openhab/dsl/rules/builder.rb', line 937 def channel_unlinked(attach: nil) @ruby_triggers << [:channel_linked] @@ -5005,7 +5005,6 @@
-1105 1106 1107 1108 @@ -5017,10 +5016,11 @@+1117 +11181114 1115 1116 -1117
# File 'lib/openhab/dsl/rules/builder.rb', line 1105 +# File 'lib/openhab/dsl/rules/builder.rb', line 1106 def cron(expression = nil, attach: nil, **fields) if fields.any? @@ -5181,13 +5181,13 @@#Tim
-660 661 662 -663+663 +664
# File 'lib/openhab/dsl/rules/builder.rb', line 660 +# File 'lib/openhab/dsl/rules/builder.rb', line 661 def debounce_for(debounce_time) idle_time = debounce_time.is_a?(Range) ? debounce_time.begin : debounce_time @@ -5289,10 +5289,10 @@
-328+329
# File 'lib/openhab/dsl/rules/builder.rb', line 328 +# File 'lib/openhab/dsl/rules/builder.rb', line 329 prop_array :delay, array_name: :run_queue, wrapper: Delay
-430 431 432 433 @@ -5383,10 +5382,11 @@+438 +439435 436 437 -438
# File 'lib/openhab/dsl/rules/builder.rb', line 430 +# File 'lib/openhab/dsl/rules/builder.rb', line 431 def dependencies(trigger_types = %i[changed updated]) trigger_types = Array.wrap(trigger_types) @@ -5442,10 +5442,10 @@
-384+385
# File 'lib/openhab/dsl/rules/builder.rb', line 384 +# File 'lib/openhab/dsl/rules/builder.rb', line 385 prop :description
-414+415
# File 'lib/openhab/dsl/rules/builder.rb', line 414 +# File 'lib/openhab/dsl/rules/builder.rb', line 415 prop :enabled
-1557 1558 1559 1560 @@ -5615,18 +5614,27 @@+1565 +1566 +1567 +1568 +1569 +15701562 1563 1564 -1565
# File 'lib/openhab/dsl/rules/builder.rb', line 1557 +# File 'lib/openhab/dsl/rules/builder.rb', line 1558 def event(topic, source: nil, types: nil, attach: nil) types = types.join(",") if types.is_a?(Enumerable) # @deprecated OH3.4 - OH3 config uses eventXXX vs OH4 uses `topic`, `source`, and `types` # See https://github.com/openhab/openhab-core/pull/3299 trigger("core.GenericEventTrigger", - eventTopic: topic, eventSource: source, eventTypes: types, # @deprecated OH3.4 - topic: topic, source: source, types: types, + eventTopic: topic, + eventSource: source, + eventTypes: types, # @deprecated OH3.4 + topic: topic, + source: source, + types: types, attach: attach) end
-1205 1206 1207 1208 @@ -5799,10 +5806,11 @@+1223 +12241220 1221 1222 -1223
# File 'lib/openhab/dsl/rules/builder.rb', line 1205 +# File 'lib/openhab/dsl/rules/builder.rb', line 1206 def every(value, at: nil, attach: nil) return every(java.time.MonthDay.parse(value), at: at, attach: attach) if value.is_a?(String) @@ -5865,21 +5873,21 @@
-1845 -1846 -1847 -1848 -1849 -1850 1851 1852 1853 1854 1855 -1856+1856 +1857 +1858 +1859 +1860 +1861 +1862
# File 'lib/openhab/dsl/rules/builder.rb', line 1845 +# File 'lib/openhab/dsl/rules/builder.rb', line 1851 def inspect <<~TEXT.tr("\n", " ") @@ -5957,13 +5965,13 @@
-1442 1443 1444 -1445+1445 +1446
# File 'lib/openhab/dsl/rules/builder.rb', line 1442 +# File 'lib/openhab/dsl/rules/builder.rb', line 1443 def item_added(attach: nil) @ruby_triggers << [:item_added] @@ -6033,13 +6041,13 @@
-1460 1461 1462 -1463+1463 +1464
# File 'lib/openhab/dsl/rules/builder.rb', line 1460 +# File 'lib/openhab/dsl/rules/builder.rb', line 1461 def item_removed(attach: nil) @ruby_triggers << [:item_removed] @@ -6109,13 +6117,13 @@
-1479 1480 1481 -1482+1482 +1483
# File 'lib/openhab/dsl/rules/builder.rb', line 1479 +# File 'lib/openhab/dsl/rules/builder.rb', line 1480 def item_updated(attach: nil) @ruby_triggers << [:item_updated] @@ -6166,10 +6174,10 @@
-374+375
# File 'lib/openhab/dsl/rules/builder.rb', line 374 +# File 'lib/openhab/dsl/rules/builder.rb', line 375 prop :name
-580 581 -582+582 +583
# File 'lib/openhab/dsl/rules/builder.rb', line 580 +# File 'lib/openhab/dsl/rules/builder.rb', line 581 prop_array(:not_if) do |item| raise ArgumentError, "Object passed to not_if must be a proc" unless item.is_a?(Proc) @@ -6375,16 +6383,16 @@
-1251 1252 1253 1254 1255 1256 -1257+1257 +1258
# File 'lib/openhab/dsl/rules/builder.rb', line 1251 +# File 'lib/openhab/dsl/rules/builder.rb', line 1252 def on_load(delay: nil, attach: nil) # prevent overwriting @on_load @@ -6560,7 +6568,6 @@
-1304 1305 1306 1307 @@ -6583,10 +6590,11 @@+1327 +13281324 1325 1326 -1327
# File 'lib/openhab/dsl/rules/builder.rb', line 1304 +# File 'lib/openhab/dsl/rules/builder.rb', line 1305 def on_start(at_level: nil, at_levels: nil, attach: nil) levels = Array.wrap(at_level) | Array.wrap(at_levels) @@ -6717,13 +6725,13 @@
-759 760 761 -762+762 +763
# File 'lib/openhab/dsl/rules/builder.rb', line 759 +# File 'lib/openhab/dsl/rules/builder.rb', line 760 def only_every(interval) interval = 1.send(interval) if %i[second minute hour day].include?(interval) @@ -6828,12 +6836,12 @@
-552 553 -554+554 +555
# File 'lib/openhab/dsl/rules/builder.rb', line 552 +# File 'lib/openhab/dsl/rules/builder.rb', line 553 prop_array(:only_if) do |item| raise ArgumentError, "Object passed to only_if must be a proc" unless item.is_a?(Proc) @@ -6902,10 +6910,10 @@
-352+353
# File 'lib/openhab/dsl/rules/builder.rb', line 352 +# File 'lib/openhab/dsl/rules/builder.rb', line 353 prop_array :otherwise, array_name: :run_queue, wrapper: Otherwise
-1403 1404 1405 1406 @@ -7109,10 +7116,11 @@+1427 +14281424 1425 1426 -1427
# File 'lib/openhab/dsl/rules/builder.rb', line 1403 +# File 'lib/openhab/dsl/rules/builder.rb', line 1404 def received_command(*items, command: nil, commands: nil, attach: nil) command_trigger = Command.new(rule_triggers: @rule_triggers) @@ -7228,10 +7236,10 @@
-231+232
# File 'lib/openhab/dsl/rules/builder.rb', line 231 +# File 'lib/openhab/dsl/rules/builder.rb', line 232 prop_array :run, array_name: :run_queue, wrapper: Run
-399+400
# File 'lib/openhab/dsl/rules/builder.rb', line 399 +# File 'lib/openhab/dsl/rules/builder.rb', line 400 prop :tags
-1497 1498 1499 -1500+1500 +1501
# File 'lib/openhab/dsl/rules/builder.rb', line 1497 +# File 'lib/openhab/dsl/rules/builder.rb', line 1498 def thing_added(attach: nil) @ruby_triggers << [:thing_added] @@ -7439,13 +7447,13 @@
-1515 1516 1517 -1518+1518 +1519
# File 'lib/openhab/dsl/rules/builder.rb', line 1515 +# File 'lib/openhab/dsl/rules/builder.rb', line 1516 def thing_removed(attach: nil) @ruby_triggers << [:thing_removed] @@ -7515,13 +7523,13 @@
-1534 1535 1536 -1537+1537 +1538
# File 'lib/openhab/dsl/rules/builder.rb', line 1534 +# File 'lib/openhab/dsl/rules/builder.rb', line 1535 def thing_updated(attach: nil) @ruby_triggers << [:thing_updated] @@ -7625,12 +7633,12 @@
-711 712 -713+713 +714
# File 'lib/openhab/dsl/rules/builder.rb', line 711 +# File 'lib/openhab/dsl/rules/builder.rb', line 712 def throttle_for(duration) debounce(for: duration) @@ -7754,14 +7762,14 @@
-1633 -1634 -1635 -1636 -1637+1638 +1639 +1640 +1641 +1642
# File 'lib/openhab/dsl/rules/builder.rb', line 1633 +# File 'lib/openhab/dsl/rules/builder.rb', line 1638 def trigger(type, attach: nil, **configuration) logger.trace("Creating trigger (#{type}) with configuration(#{configuration})") @@ -7862,10 +7870,10 @@
-281+282
# File 'lib/openhab/dsl/rules/builder.rb', line 281 +# File 'lib/openhab/dsl/rules/builder.rb', line 282 prop_array :triggered, array_name: :run_queue, wrapper: Trigger
-364+365
# File 'lib/openhab/dsl/rules/builder.rb', line 364 +# File 'lib/openhab/dsl/rules/builder.rb', line 365 prop :uid
-1723 -1724 -1725 -1726 -1727 1728 1729 1730 @@ -8111,10 +8114,15 @@+1742 +1743 +1744 +1745 +1746 +17471739 1740 1741 -1742
# File 'lib/openhab/dsl/rules/builder.rb', line 1723 +# File 'lib/openhab/dsl/rules/builder.rb', line 1728 def updated(*items, to: nil, attach: nil) updated = Updated.new(rule_triggers: @rule_triggers) @@ -8336,27 +8344,29 @@+1838 +1839 +1840 +1841 +1842 +1843 +1844-1830 -1831 -1832 -1833 -1834 1835 1836 1837 -1838
# File 'lib/openhab/dsl/rules/builder.rb', line 1830 +# File 'lib/openhab/dsl/rules/builder.rb', line 1835 def watch(path, glob: "*", for: %i[created deleted modified], attach: nil) types = [binding.local_variable_get(:for)].flatten WatchHandler::WatchTriggerHandlerFactory.instance # ensure it's registered - trigger(WatchHandler::WATCH_TRIGGER_MODULE_ID, path: path.to_s, - types: types.map(&:to_s), - glob: glob.to_s, - attach: attach) + trigger(WatchHandler::WATCH_TRIGGER_MODULE_ID, + path: path.to_s, + types: types.map(&:to_s), + glob: glob.to_s, + attach: attach) end
# File 'lib/openhab/dsl/rules/triggers/conditions/generic.rb', line 32 -def process(mod:, inputs:) # rubocop:disable Lint/UnusedMethodArgument - mod is unused here but required +def process(mod:, inputs:) logger.trace("Checking #{inputs} against condition trigger #{self}") unless check_value(Conditions.old_state_from(inputs), @from) && check_value(Conditions.new_state_from(inputs), @to) && @@ -3193,7 +3193,7 @@diff --git a/main/OpenHAB/DSL/Rules/Triggers/CronHandler/CronTriggerHandler.html b/main/OpenHAB/DSL/Rules/Triggers/CronHandler/CronTriggerHandler.html index 49e92aabaf..068edd8526 100644 --- a/main/OpenHAB/DSL/Rules/Triggers/CronHandler/CronTriggerHandler.html +++ b/main/OpenHAB/DSL/Rules/Triggers/CronHandler/CronTriggerHandler.html @@ -3275,7 +3275,7 @@
diff --git a/main/OpenHAB/DSL/Rules/Triggers/CronHandler/CronTriggerHandlerFactory.html b/main/OpenHAB/DSL/Rules/Triggers/CronHandler/CronTriggerHandlerFactory.html index 08f3c00c5e..3079045566 100644 --- a/main/OpenHAB/DSL/Rules/Triggers/CronHandler/CronTriggerHandlerFactory.html +++ b/main/OpenHAB/DSL/Rules/Triggers/CronHandler/CronTriggerHandlerFactory.html @@ -3052,7 +3052,7 @@
diff --git a/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/WatchTriggerHandler.html b/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/WatchTriggerHandler.html index ac71600598..f653397181 100644 --- a/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/WatchTriggerHandler.html +++ b/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/WatchTriggerHandler.html @@ -3666,7 +3666,7 @@
diff --git a/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/WatchTriggerHandlerFactory.html b/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/WatchTriggerHandlerFactory.html index bfe1d60810..487d87bdab 100644 --- a/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/WatchTriggerHandlerFactory.html +++ b/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/WatchTriggerHandlerFactory.html @@ -3052,7 +3052,7 @@
diff --git a/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/Watcher.html b/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/Watcher.html index d8471bfc84..542959f357 100644 --- a/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/Watcher.html +++ b/main/OpenHAB/DSL/Rules/Triggers/WatchHandler/Watcher.html @@ -3489,7 +3489,7 @@
diff --git a/main/OpenHAB/DSL/Things.html b/main/OpenHAB/DSL/Things.html index 2cd4d66c97..a75ac97ff2 100644 --- a/main/OpenHAB/DSL/Things.html +++ b/main/OpenHAB/DSL/Things.html @@ -2823,7 +2823,7 @@
Overview
diff --git a/main/OpenHAB/DSL/Things/BridgeBuilder.html b/main/OpenHAB/DSL/Things/BridgeBuilder.html index cdf62be941..4ab66997ca 100644 --- a/main/OpenHAB/DSL/Things/BridgeBuilder.html +++ b/main/OpenHAB/DSL/Things/BridgeBuilder.html @@ -2945,12 +2945,12 @@
-226 -227 -228+228 +229 +230
# File 'lib/openhab/dsl/things/builder.rb', line 226 +# File 'lib/openhab/dsl/things/builder.rb', line 228 def bridge(*args, **kwargs, &block) super(*args, bridge: self, **kwargs, &block) @@ -2992,12 +2992,12 @@
-232 -233 -234+234 +235 +236
# File 'lib/openhab/dsl/things/builder.rb', line 232 +# File 'lib/openhab/dsl/things/builder.rb', line 234 def thing(*args, **kwargs, &block) super(*args, bridge: self, **kwargs, &block) @@ -3012,7 +3012,7 @@diff --git a/main/OpenHAB/DSL/Things/Builder.html b/main/OpenHAB/DSL/Things/Builder.html index b8f5f2ea1a..3f7a1bda9f 100644 --- a/main/OpenHAB/DSL/Things/Builder.html +++ b/main/OpenHAB/DSL/Things/Builder.html @@ -3196,7 +3196,7 @@
diff --git a/main/OpenHAB/DSL/Things/ChannelBuilder.html b/main/OpenHAB/DSL/Things/ChannelBuilder.html index a63a1167ff..cba0fddcd9 100644 --- a/main/OpenHAB/DSL/Things/ChannelBuilder.html +++ b/main/OpenHAB/DSL/Things/ChannelBuilder.html @@ -3107,8 +3107,6 @@
-255 -256 257 258 259 @@ -3128,10 +3126,12 @@+276 +277 +278273 274 275 -276
# File 'lib/openhab/dsl/things/builder.rb', line 255 +# File 'lib/openhab/dsl/things/builder.rb', line 257 def initialize(uid, type, label = nil, thing:, group: nil, config: {}) @thing = thing @@ -3192,12 +3192,12 @@
-240 -241 -242+242 +243 +244
# File 'lib/openhab/dsl/things/builder.rb', line 240 +# File 'lib/openhab/dsl/things/builder.rb', line 242 def config @config @@ -3234,12 +3234,12 @@
-239 -240 -241+241 +242 +243
# File 'lib/openhab/dsl/things/builder.rb', line 239 +# File 'lib/openhab/dsl/things/builder.rb', line 241 def label @label @@ -3276,12 +3276,12 @@
-240 -241 -242+242 +243 +244
# File 'lib/openhab/dsl/things/builder.rb', line 240 +# File 'lib/openhab/dsl/things/builder.rb', line 242 def type @type @@ -3318,12 +3318,12 @@
-240 -241 -242+242 +243 +244
# File 'lib/openhab/dsl/things/builder.rb', line 240 +# File 'lib/openhab/dsl/things/builder.rb', line 242 def uid @uid @@ -3339,7 +3339,7 @@diff --git a/main/OpenHAB/DSL/Things/ThingBuilder.html b/main/OpenHAB/DSL/Things/ThingBuilder.html index 20a8645c90..70f3f95139 100644 --- a/main/OpenHAB/DSL/Things/ThingBuilder.html +++ b/main/OpenHAB/DSL/Things/ThingBuilder.html @@ -3877,7 +3877,7 @@
diff --git a/main/OpenHAB/DSL/TimerManager.html b/main/OpenHAB/DSL/TimerManager.html index 182411db6f..5d6465ec98 100644 --- a/main/OpenHAB/DSL/TimerManager.html +++ b/main/OpenHAB/DSL/TimerManager.html @@ -3492,7 +3492,7 @@
diff --git a/main/OpenHAB/Log.html b/main/OpenHAB/Log.html index af235e9712..d35f49dc10 100644 --- a/main/OpenHAB/Log.html +++ b/main/OpenHAB/Log.html @@ -3112,7 +3112,7 @@
diff --git a/main/OpenHAB/Logger.html b/main/OpenHAB/Logger.html index 6f022d2a2c..4dafa653df 100644 --- a/main/OpenHAB/Logger.html +++ b/main/OpenHAB/Logger.html @@ -4511,7 +4511,7 @@
diff --git a/main/OpenHAB/OSGi.html b/main/OpenHAB/OSGi.html index b95216800d..f874969efc 100644 --- a/main/OpenHAB/OSGi.html +++ b/main/OpenHAB/OSGi.html @@ -3191,7 +3191,7 @@
bundle = org.osgi.framework.FrameworkUtil.get_bundle(interfaces.first.java_class) bundle.bundle_context.register_service( - interfaces.map(&:java_class).map(&:name).to_java(java.lang.String), + interfaces.map { |i| i.java_class.name }.to_java(java.lang.String), instance, java.util.Hashtable.new(properties) ) @@ -3393,7 +3393,7 @@
diff --git a/main/OpenHAB/RSpec.html b/main/OpenHAB/RSpec.html index 826db81fe2..16c5929e06 100644 --- a/main/OpenHAB/RSpec.html +++ b/main/OpenHAB/RSpec.html @@ -2836,7 +2836,7 @@
Overview
diff --git a/main/OpenHAB/RSpec/Configuration.html b/main/OpenHAB/RSpec/Configuration.html index 926075e6a7..6c686d7da2 100644 --- a/main/OpenHAB/RSpec/Configuration.html +++ b/main/OpenHAB/RSpec/Configuration.html @@ -3156,7 +3156,7 @@diff --git a/main/OpenHAB/RSpec/ExampleGroup.html b/main/OpenHAB/RSpec/ExampleGroup.html index 2d2addb97f..959178048f 100644 --- a/main/OpenHAB/RSpec/ExampleGroup.html +++ b/main/OpenHAB/RSpec/ExampleGroup.html @@ -2823,7 +2823,7 @@
Overview
diff --git a/main/OpenHAB/RSpec/ExampleGroup/ClassMethods.html b/main/OpenHAB/RSpec/ExampleGroup/ClassMethods.html index a59cd5af7c..7f0fd09290 100644 --- a/main/OpenHAB/RSpec/ExampleGroup/ClassMethods.html +++ b/main/OpenHAB/RSpec/ExampleGroup/ClassMethods.html @@ -3447,7 +3447,7 @@diff --git a/main/OpenHAB/RSpec/Helpers.html b/main/OpenHAB/RSpec/Helpers.html index aa1c84bf6d..c9e7ed50b3 100644 --- a/main/OpenHAB/RSpec/Helpers.html +++ b/main/OpenHAB/RSpec/Helpers.html @@ -4203,7 +4203,7 @@
diff --git a/main/OpenHAB/Transform.html b/main/OpenHAB/Transform.html index 97f569ae81..7d592edf71 100644 --- a/main/OpenHAB/Transform.html +++ b/main/OpenHAB/Transform.html @@ -2833,7 +2833,7 @@
Overview
diff --git a/main/Range.html b/main/Range.html index 88a32cbf9f..9063abb780 100644 --- a/main/Range.html +++ b/main/Range.html @@ -2845,7 +2845,7 @@Methods included from yard 0.9.28 (ruby-3.1.3). diff --git a/main/Symbol.html b/main/Symbol.html index 0aa444aac6..1b789a1d77 100644 --- a/main/Symbol.html +++ b/main/Symbol.html @@ -2907,7 +2907,7 @@
diff --git a/main/Time.html b/main/Time.html index b2458737f0..3701fd5cdc 100644 --- a/main/Time.html +++ b/main/Time.html @@ -3671,7 +3671,7 @@
diff --git a/main/file.CHANGELOG.html b/main/file.CHANGELOG.html index ca36970292..bedb7dffc8 100644 --- a/main/file.CHANGELOG.html +++ b/main/file.CHANGELOG.html @@ -4265,7 +4265,7 @@
#0.0.1
diff --git a/main/file.CONTRIBUTING.html b/main/file.CONTRIBUTING.html index 38b596f5ca..c75ed42869 100644 --- a/main/file.CONTRIBUTING.html +++ b/main/file.CONTRIBUTING.html @@ -2825,7 +2825,7 @@#R diff --git a/main/file.README.html b/main/file.README.html index f6dac1c5c6..60893c9271 100644 --- a/main/file.README.html +++ b/main/file.README.html @@ -2792,7 +2792,7 @@
#Discussion< diff --git a/main/file.USAGE.html b/main/file.USAGE.html index 5754d2f25e..df2eb2947b 100644 --- a/main/file.USAGE.html +++ b/main/file.USAGE.html @@ -4148,7 +4148,7 @@
diff --git a/main/file.conversions.html b/main/file.conversions.html index 3dfb8fc1ea..70da987a7b 100644 --- a/main/file.conversions.html +++ b/main/file.conversions.html @@ -2954,7 +2954,7 @@
#Python
diff --git a/main/file.examples.html b/main/file.examples.html index d770a2f34d..624dca64da 100644 --- a/main/file.examples.html +++ b/main/file.examples.html @@ -2997,7 +2997,7 @@yard 0.9.28 (ruby-3.1.3). diff --git a/main/file.ruby-basics.html b/main/file.ruby-basics.html index 0714efc715..e6b551fd05 100644 --- a/main/file.ruby-basics.html +++ b/main/file.ruby-basics.html @@ -2990,7 +2990,7 @@
yard 0.9.28 (ruby-3.1.3). diff --git a/main/file.testing.html b/main/file.testing.html index daad42ce69..e097fcd0ec 100644 --- a/main/file.testing.html +++ b/main/file.testing.html @@ -2957,7 +2957,7 @@
#IRB
diff --git a/main/index.html b/main/index.html index 5754d2f25e..df2eb2947b 100644 --- a/main/index.html +++ b/main/index.html @@ -4148,7 +4148,7 @@diff --git a/main/top-level-namespace.html b/main/top-level-namespace.html index 4c0a7f9820..14080e38cf 100644 --- a/main/top-level-namespace.html +++ b/main/top-level-namespace.html @@ -3225,7 +3225,7 @@
Dynamic Method Handling