Skip to content

Commit

Permalink
Fix scene group support for Hub v1. (openhab#11857)
Browse files Browse the repository at this point in the history
Fixes openhab#11856

Signed-off-by: Jacob Laursen <[email protected]>
  • Loading branch information
jlaur authored and moesterheld committed Jan 18, 2022
1 parent 44b74d1 commit 1a972ff
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ public HDPowerViewWebTargets(HttpClient httpClient, String ipAddress) {
shades = base + "shades/";
sceneActivate = base + "scenes";
scenes = base + "scenes/";
sceneCollectionActivate = base + "sceneCollections";
sceneCollections = base + "sceneCollections/";

// Hub v1 only supports "scenecollections". Hub v2 will redirect to "sceneCollections".
sceneCollectionActivate = base + "scenecollections";
sceneCollections = base + "scenecollections/";

scheduledEvents = base + "scheduledevents";
this.httpClient = httpClient;
}
Expand Down

0 comments on commit 1a972ff

Please sign in to comment.