Update netatmo-connect to use non-deprecated api

devicedata has been deprecated in favor of getstationsdata and will be removed at the end of November.

*Note* I haven't actually tested this change due to time limitations. Someone should check this out and verify it behaves properly before merging.
This commit is contained in:
Brian Steere
2016-10-14 10:22:36 -05:00
committed by GitHub
parent 723ef7e7e6
commit 9433598381

View File

@@ -387,7 +387,7 @@ def getDeviceList() {
state.deviceDetail = [:]
state.deviceState = [:]
apiGet("/api/devicelist") { response ->
apiGet("/api/getstationsdata") { response ->
response.data.body.devices.each { value ->
def key = value._id
deviceList[key] = "${value.station_name}: ${value.module_name}"