Skip to content

Commit

Permalink
Fix regression for data not being updated
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Spielmann <simon@MacBook-Pro.fritz.box>
  • Loading branch information
Simon Spielmann authored and Simon Spielmann committed Dec 6, 2022
1 parent 780ce3c commit e157457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -78,7 +78,7 @@ public String refreshClient() throws IOException, InterruptedException {
*/
public void playSound(String deviceId) throws IOException, InterruptedException {

Map<String, Object> request = Map.of("device", deviceId, "fmyl", true);
Map<String, Object> request = Map.of("device", deviceId, "fmyl", true, "subject", "Message from OpenHAB.");
this.session.post(this.fmipSoundUrl.toString(), this.gson.toJson(request), null);
}
}
Expand Up @@ -163,7 +163,7 @@ private <T> T callApiWithRetryAndExceptionHandling(Callable<T> wrapped) {
return null;
}
}
if (!success) {
if (authState != AuthState.AUTHENTICATED && !success) {
return null;
}

Expand Down

0 comments on commit e157457

Please sign in to comment.