Skip to content

Commit

Permalink
Fixed regression for Adaptive Lightning
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaquu committed Jun 21, 2024
1 parent cff18e5 commit 8421072
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
11 changes: 5 additions & 6 deletions build/nodes/service.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,14 @@
<div class="form-row">
<label for="node-input-adaptiveLightingOptionsMode"><i class="fa fa-hand-o-up"></i> Mode</label>
<select id="node-input-adaptiveLightingOptionsMode">
<option value="1" selected="selected">AUTOMATIC</option>
<option value="" selected hidden disabled>AUTOMATIC</option>
<option value="1">AUTOMATIC</option>
<option value="2" disabled>MANUAL</option>
</select>
</div>
<div class="form-row">
<label for="node-input-adaptiveLightingOptionsCustomTemperatureAdjustment"><i class="fa fa-thermometer-quarter"></i> Custom Temperature Adjustment</label>
<input type="number" id="node-input-adaptiveLightingOptionsCustomTemperatureAdjustment">
<input type="number" id="node-input-adaptiveLightingOptionsCustomTemperatureAdjustment" placeholder="0">
</div>
</div>

Expand Down Expand Up @@ -498,12 +499,10 @@ <h2 id="toc_8">Characteristic Properties</h2>
value: false,
},
adaptiveLightingOptionsMode: {
value: 1,
validate: RED.validators.number()
validate: RED.validators.number(true)
},
adaptiveLightingOptionsCustomTemperatureAdjustment: {
value: 0,
validate: RED.validators.number()
validate: RED.validators.number(true)
},
},
inputs: 1,
Expand Down
11 changes: 5 additions & 6 deletions build/nodes/service2.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,14 @@
<div class="form-row">
<label for="node-input-adaptiveLightingOptionsMode"><i class="fa fa-hand-o-up"></i> Mode</label>
<select id="node-input-adaptiveLightingOptionsMode">
<option value="1" selected="selected">AUTOMATIC</option>
<option value="" selected hidden disabled>AUTOMATIC</option>
<option value="1">AUTOMATIC</option>
<option value="2" disabled>MANUAL</option>
</select>
</div>
<div class="form-row">
<label for="node-input-adaptiveLightingOptionsCustomTemperatureAdjustment"><i class="fa fa-thermometer-quarter"></i> Custom Temperature Adjustment</label>
<input type="number" id="node-input-adaptiveLightingOptionsCustomTemperatureAdjustment">
<input type="number" id="node-input-adaptiveLightingOptionsCustomTemperatureAdjustment" placeholder="0">
</div>
</div>

Expand Down Expand Up @@ -508,12 +509,10 @@ <h2 id="toc_8">Characteristic Properties</h2>
value: false,
},
adaptiveLightingOptionsMode: {
value: 1,
validate: RED.validators.number()
validate: RED.validators.number(true)
},
adaptiveLightingOptionsCustomTemperatureAdjustment: {
value: 0,
validate: RED.validators.number()
validate: RED.validators.number(true)
},
},
inputs: 1,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-homekit-bridged",
"version": "1.7.0-dev.4",
"version": "1.7.0-dev.5",
"description": "Node-RED nodes to simulate Apple HomeKit devices.",
"main": "build/nodes/nrchkb.js",
"scripts": {
Expand Down

0 comments on commit 8421072

Please sign in to comment.