mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-19 00:20:26 +00:00
Fixed closing homes to actually call the close on the homes. Updated the
lowest setting on the test dim function to b 1. Fixes #438 Fixes #440
This commit is contained in:
@@ -1145,7 +1145,7 @@ app.controller('ValueDialogCtrl', function ($scope, bridgeService, ngDialog) {
|
||||
$scope.slider = {
|
||||
value: 100,
|
||||
options: {
|
||||
floor: 0,
|
||||
floor: 1,
|
||||
ceil: 100,
|
||||
showSelectionBar: true
|
||||
}
|
||||
@@ -1154,8 +1154,8 @@ app.controller('ValueDialogCtrl', function ($scope, bridgeService, ngDialog) {
|
||||
$scope.valueType = "percentage";
|
||||
$scope.changeScale = function () {
|
||||
if($scope.valueType === "raw") {
|
||||
$scope.slider.options.ceil = 255;
|
||||
$scope.slider.value = 255;
|
||||
$scope.slider.options.ceil = 254;
|
||||
$scope.slider.value = 254;
|
||||
}
|
||||
else {
|
||||
$scope.slider.options.ceil = 100;
|
||||
@@ -1164,7 +1164,7 @@ app.controller('ValueDialogCtrl', function ($scope, bridgeService, ngDialog) {
|
||||
};
|
||||
$scope.setValue = function () {
|
||||
ngDialog.close('ngdialog1');
|
||||
var theValue = 0;
|
||||
var theValue = 1;
|
||||
if($scope.valueType === "percentage")
|
||||
theValue = Math.round(($scope.slider.value * .01) * 255);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user