You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.ntfy/src/main/java/org/openhab/binding/ntfy/internal/NtfyBindingConstants.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,5 +33,5 @@ public class NtfyBindingConstants {
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.ntfy/src/main/java/org/openhab/binding/ntfy/internal/NtfyConnectionConfiguration.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
publicclassNtfyConnectionConfiguration {
28
28
29
29
/**
30
-
* Hostname of the ntfy server, e.g. "ntfy.sh"
30
+
* Hostname of the ntfy server, e.g. "https://ntfy.sh"
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.ntfy/src/main/java/org/openhab/binding/ntfy/internal/NtfyConnectionHandler.java
+48-2Lines changed: 48 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,7 @@ public synchronized void createAndRegisterWebSocketClient(Thing thing) {
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.ntfy/src/main/java/org/openhab/binding/ntfy/internal/network/GsonDeserializer.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
21
21
importcom.google.gson.Gson;
22
22
importcom.google.gson.GsonBuilder;
23
+
importcom.google.gson.JsonSyntaxException;
23
24
24
25
/**
25
26
* Helper wrapper around Gson used to deserialize incoming ntfy JSON messages
@@ -39,7 +40,7 @@ public class GsonDeserializer {
39
40
* @param message the raw JSON message
40
41
* @return the deserialized {@link BaseEvent} or {@code null} when parsing failed
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.ntfy/src/main/java/org/openhab/binding/ntfy/internal/network/HttpActionButton.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,9 +42,10 @@ public class HttpActionButton extends ActionButtonBase {
42
42
* @param headers optional headers to include (may be null)
43
43
* @param body optional request body (may be null)
44
44
* @throws MalformedURLException when the provided URL is not a valid URL
45
+
* @throws IllegalArgumentException when the provided URL is not valid
0 commit comments