Skip to content

Commit f26b7f8

Browse files
authored
Fixing private method issue caused by grails update (SmartThingsCommunity#3474)
* Fixing private method issue caused by grails update * fixing DTHs
1 parent 93ccb2e commit f26b7f8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

devicetypes/smartthings/ecobee-thermostat.src/ecobee-thermostat.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def generateEvent(Map results) {
232232
}
233233

234234
//return descriptionText to be shown on mobile activity feed
235-
private getThermostatDescriptionText(name, value, linkText) {
235+
def getThermostatDescriptionText(name, value, linkText) {
236236
if(name == "temperature") {
237237
return "temperature is ${value}°${location.temperatureScale}"
238238

smartapps/smartthings/ecobee-connect.src/ecobee-connect.groovy

+3-3
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ def setSensorName(name, deviceId) {
12001200
*
12011201
* @return true if the command was accepted by Ecobee without error, false otherwise.
12021202
*/
1203-
private boolean sendCommandToEcobee(Map bodyParams) {
1203+
boolean sendCommandToEcobee(Map bodyParams) {
12041204
// no need to try sending a command if authToken is null
12051205
if (!state.authToken) {
12061206
log.warn "sendCommandToEcobee failed due to authToken=null"
@@ -1259,7 +1259,7 @@ def getCallbackUrl() { return "${serverUrl}/oauth/callback" }
12591259
def getBuildRedirectUrl() { return "${serverUrl}/oauth/initialize?appId=${app.id}&access_token=${state.accessToken}&apiServerUrl=${apiServerUrl}" }
12601260
def getApiEndpoint() { return "https://api.ecobee.com" }
12611261
def getSmartThingsClientId() { return appSettings.clientId }
1262-
private getVendorIcon() { return "https://s3.amazonaws.com/smartapp-icons/Partner/ecobee.png" }
1262+
def getVendorIcon() { return "https://s3.amazonaws.com/smartapp-icons/Partner/ecobee.png" }
12631263

12641264
//send both push notification and mobile activity feeds
12651265
def sendPushAndFeeds(notificationMessage) {
@@ -1302,7 +1302,7 @@ def getThermostatData(data) {
13021302
* Stores data about the thermostats in atomicState.
13031303
* @param thermostats - a list of thermostats as returned from the Ecobee API
13041304
*/
1305-
private void storeThermostatData(thermostatData) {
1305+
void storeThermostatData(thermostatData) {
13061306
def data
13071307
def remoteSensors = state.remoteSensors2 ?: [:]
13081308
def thermostatList = state.thermostats ?: [:]

smartapps/smartthings/lifx-connect.src/lifx-connect.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def getCallbackUrl() { return "${getServerUrl()}/oauth/callback" }
5151
def apiURL(path = '/') { return "https://api.lifx.com/v1${path}" }
5252
def getSecretKey() { return appSettings.secretKey }
5353
def getClientId() { return appSettings.clientId }
54-
private getVendorName() { "LIFX" }
54+
def getVendorName() { "LIFX" }
5555

5656
def authPage() {
5757
if (state.lifxAccessToken) {
@@ -294,7 +294,7 @@ def initialize() {
294294
}
295295

296296
// Misc
297-
private setupDeviceWatch() {
297+
def setupDeviceWatch() {
298298
def hub = location.hubs[0]
299299
// Make sure that all child devices are enrolled in device watch
300300
getChildDevices().each {

smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy

+3-3
Original file line numberDiff line numberDiff line change
@@ -978,11 +978,11 @@ def deleteHarmony() {
978978
render status: 204, data: "{}"
979979
}
980980

981-
private getAllDevices() {
981+
def getAllDevices() {
982982
([] + switches + motionSensors + contactSensors + thermostats + presenceSensors + temperatureSensors + accelerationSensors + waterSensors + lightSensors + humiditySensors + alarms + locks)?.findAll()?.unique { it.id }
983983
}
984984

985-
private deviceItem(device) {
985+
def deviceItem(device) {
986986
[
987987
id: device.id,
988988
label: device.displayName,
@@ -1006,7 +1006,7 @@ private deviceItem(device) {
10061006
]
10071007
}
10081008

1009-
private hubItem(hub) {
1009+
def hubItem(hub) {
10101010
[
10111011
id: hub.id,
10121012
name: hub.name,

0 commit comments

Comments
 (0)