Skip to content

Commit 9127c8b

Browse files
authored
Fix for installed apps
The token isn't being passed which is causing an error when used with multiple locations
1 parent f8d2441 commit 9127c8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SmartThingsTerminal/API/SmartThingsClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public PagedInstalledApps GetAllInstalledApps(string locationId = null)
101101
{
102102
if (locationId != null)
103103
{
104-
_allInstalledApps = _installedAppsApi.ListInstallations(locationId);
104+
_allInstalledApps = _installedAppsApi.ListInstallations(_accessToken, locationId);
105105
}
106106
else
107107
{
@@ -111,7 +111,7 @@ public PagedInstalledApps GetAllInstalledApps(string locationId = null)
111111
{
112112
foreach (var location in locations.Items)
113113
{
114-
var locationApps = _installedAppsApi.ListInstallations(location.LocationId.ToString());
114+
var locationApps = _installedAppsApi.ListInstallations(_accessToken, location.LocationId.ToString());
115115
if (locationApps.Items?.Count > 0)
116116
{
117117
_allInstalledApps.Items ??= new List<InstalledApp>();

0 commit comments

Comments
 (0)