Skip to content

Commit 51ce10c

Browse files
committed
Fixed build device button in Harmony Device helper tab.
Fixes #116
1 parent b5f7144 commit 51ce10c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.bwssystems.HABridge</groupId>
77
<artifactId>ha-bridge</artifactId>
8-
<version>2.0.6</version>
8+
<version>2.0.7</version>
99
<packaging>jar</packaging>
1010

1111
<name>HA Bridge</name>

src/main/resources/public/scripts/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,6 @@ app.controller('HarmonyController', function ($scope, $location, $http, bridgeSe
988988
};
989989

990990
$scope.buildButtonUrls = function (harmonydevice, onbutton, offbutton) {
991-
bridgeService.clearDevice();
992991
var currentOn = $scope.device.onUrl;
993992
var currentOff = $scope.device.offUrl;
994993
var actionOn = angular.fromJson(onbutton);
@@ -999,6 +998,7 @@ app.controller('HarmonyController', function ($scope, $location, $http, bridgeSe
999998
$scope.device.offUrl = currentOff.substr(0, currentOff.indexOf("]")) + ",{\"device\":\"" + harmonydevice.device.id + "\",\"button\":\"" + actionOff.command + "\"}]";
1000999
}
10011000
else if ($scope.device.mapType == null || $scope.device.mapType == "") {
1001+
bridgeService.clearDevice();
10021002
$scope.device.deviceType = "button";
10031003
$scope.device.targetDevice = harmonydevice.hub;
10041004
$scope.device.name = harmonydevice.device.label;

0 commit comments

Comments
 (0)