]> git.basschouten.com Git - openhab-addons.git/commitdiff
[amazonechocontrol] fix api url (#9982)
authorJ-N-K <J-N-K@users.noreply.github.com>
Fri, 29 Jan 2021 19:33:32 +0000 (20:33 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Jan 2021 19:33:32 +0000 (20:33 +0100)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/Connection.java

index 5e2d5a2bfc418fa2c4c70b4caf0d84f4b009fc86..50ac5c8c74247ffbc51099f71477737dc77913f2 100644 (file)
@@ -1875,7 +1875,7 @@ public class Connection {
 
     public @Nullable JsonAutomation @Nullable [] getRoutines()
             throws IOException, URISyntaxException, InterruptedException {
-        String json = makeRequestAndReturnString(alexaServer + "/api/behaviors/automations?limit=2000");
+        String json = makeRequestAndReturnString(alexaServer + "/api/behaviors/v2/automations?limit=2000");
         JsonAutomation[] result = parseJson(json, JsonAutomation[].class);
         return result;
     }