Skip to content

Commit b5dae10

Browse files
authored
Merge pull request #33 from erodewald/31-listrequests
Fix request function call
2 parents d38491b + 6aef10d commit b5dae10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/platform/scenes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = class Scenes extends Base {
1313
qs.locationid = this.st.locationId
1414
}
1515

16-
return this.st.api.listRequest('scenes', 'GET', null, null, qs)
16+
return this.st.client.request('scenes', 'GET', null, null, qs)
1717
}
1818

1919
getScene(id) {

lib/platform/subscriptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = class Subscriptions extends Base {
77
}
88

99
list() {
10-
return this.st.client.listRequest(`installedapps/${this.st.installedAppId}/subscriptions`)
10+
return this.st.client.request(`installedapps/${this.st.installedAppId}/subscriptions`)
1111
}
1212

1313
get(name) {

0 commit comments

Comments
 (0)