openhab-scripting 5.15.0 → 5.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openhab/dsl/sitemaps/builder.rb +17 -13
- data/lib/openhab/dsl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2150062e6b4a58f888b09bb106f39cb57c7e67749b85dfc13978a8437702e33
|
4
|
+
data.tar.gz: 22cfc6729962a702bae8ecc83d26280e4967834a8235bd7ee9ac8f3596796f50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfab71ec2435493bafdf61bf447a34a644e366494a9ccdf174a98d9035b1cc8fd9828ca174c5288d2c41a5798cb6ea2bad8bd78f492cb5564f0f3cbf6fcf7023
|
7
|
+
data.tar.gz: 36ff08d089054720805effeb0fa16557b767a87b8238c45d7c3c2e5d5fc12ac0dffae5b0f2f7226435e68c5ddfb03a252a8ad12e680f422695040869865716cb
|
@@ -144,12 +144,14 @@ module OpenHAB
|
|
144
144
|
if @builder_proxy
|
145
145
|
old_obj = @builder_proxy.__getobj__
|
146
146
|
@builder_proxy.__setobj__(self)
|
147
|
-
|
147
|
+
begin
|
148
|
+
yield @builder_proxy
|
149
|
+
ensure
|
150
|
+
@builder_proxy.__setobj__(old_obj)
|
151
|
+
end
|
148
152
|
else
|
149
153
|
instance_eval_with_dummy_items(&block)
|
150
154
|
end
|
151
|
-
ensure
|
152
|
-
@builder_proxy&.__setobj__(old_obj)
|
153
155
|
end
|
154
156
|
|
155
157
|
# Adds one or more new rules for setting the label color
|
@@ -663,16 +665,18 @@ module OpenHAB
|
|
663
665
|
# @example
|
664
666
|
# # This creates a buttongrid to emulate a TV remote control
|
665
667
|
# sitemaps.build do
|
666
|
-
#
|
667
|
-
#
|
668
|
-
#
|
669
|
-
#
|
670
|
-
#
|
671
|
-
#
|
672
|
-
#
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
668
|
+
# sitemap "remote", label: "TV Remote Control" do
|
669
|
+
# buttongrid item: LivingRoom_TV_RCButton, buttons: [
|
670
|
+
# [1, 1, "BACK", "Back", "f7:return"],
|
671
|
+
# [1, 2, "HOME", "Menu", "material:apps"],
|
672
|
+
# [1, 3, "YELLOW", "Search", "f7:search"],
|
673
|
+
# [2, 2, "UP", "Up", "f7:arrowtriangle_up"],
|
674
|
+
# [4, 2, "DOWN", "Down", "f7:arrowtriangle_down"],
|
675
|
+
# [3, 1, "LEFT", "Left", "f7:arrowtriangle_left"],
|
676
|
+
# [3, 3, "RIGHT", "Right", "f7:arrowtriangle_right"],
|
677
|
+
# [3, 2, "ENTER", "Enter", "material:adjust"]
|
678
|
+
# ]
|
679
|
+
# end
|
676
680
|
# end
|
677
681
|
#
|
678
682
|
# @see https://www.openhab.org/docs/ui/sitemaps.html#element-type-buttongrid
|
data/lib/openhab/dsl/version.rb
CHANGED