openhab-scripting 5.19.0 → 5.19.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 806939292f4f749b0fd1db95f1b99a35365f8de972e96b90bb824a217f151743
4
- data.tar.gz: 783bd04b6bcb2d6fedef08d69aecb150f3578a9a6a011015b968cb4614949263
3
+ metadata.gz: 509b0ee1752d832802d1193b4291ccf2d1a8f28d38452d900b7b8bf5862917d8
4
+ data.tar.gz: c26c325f46def04c214d611ac85977b065eb4fed3f326de075431d93ec9baca5
5
5
  SHA512:
6
- metadata.gz: 11e236b0c0c642d154e0340ce1330311fcaec8f60c180af58ec4bfc2fd013a2de64d54ae327316b90bf565f5255c76c1f3d810595225d9c8b22ff40c8fb12e7b
7
- data.tar.gz: 47d995352bb04ced923551adcf16f7022823b2cf4e2aed9d758be688fa9a75cc40b0778700e2e0e04f15e8092453ae2c0323565de9dc73047faaeff37d0bd397
6
+ metadata.gz: 612d74470204eaef6f6e2f80c42220a3a111b3b2a65b86d727f4990627ea1f734605fd50f25640dda8dad11cc22771ba73ef299e419c7e7e3e10fdb53b760d2d
7
+ data.tar.gz: 82bbfccf67b8895b3781504cd217b84928bca4e675223885d861865b41addbfe7259f036748d764bfec78212e01339cac26d7eb9ea908765d51a5af28fab7972
@@ -123,7 +123,7 @@ module OpenHAB
123
123
  #
124
124
  # Links the channel to an item.
125
125
  #
126
- # @param [String, Items::Item] channel The channel to link to.
126
+ # @param [String, Items::Item] item The item to link to.
127
127
  # @param [Hash] config The configuration for the link.
128
128
  #
129
129
  # @return [Things::ItemChannelLink] The created link.
@@ -737,7 +737,12 @@ module OpenHAB
737
737
  def build
738
738
  widget = super
739
739
  buttons.each do |button|
740
- button_object = SitemapBuilder.factory.create_button
740
+ button_object = if SitemapBuilder.factory.respond_to?(:create_button_definition)
741
+ SitemapBuilder.factory.create_button_definition
742
+ else
743
+ # @deprecated OH 4.1 in OH 4.2 this clause is not needed
744
+ SitemapBuilder.factory.create_button
745
+ end
741
746
  button_object.row = button[0]
742
747
  button_object.column = button[1]
743
748
  button_object.cmd = button[2]
@@ -4,6 +4,6 @@ module OpenHAB
4
4
  module DSL
5
5
  # Version of openHAB helper libraries
6
6
  # @return [String]
7
- VERSION = "5.19.0"
7
+ VERSION = "5.19.1"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openhab-scripting
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.19.0
4
+ version: 5.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian O'Connell
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-05-16 00:00:00.000000000 Z
13
+ date: 2024-05-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler