mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[remoteopenhab] Avoid unexpected log for ALIVE SSE message (#13008)
Related to openhab/openhab-core#2983 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
1d766bb824
commit
859a1ebfec
@ -401,13 +401,16 @@ public class RemoteopenhabRestClient {
|
||||
listeners.forEach(listener -> listener.onConnected());
|
||||
}
|
||||
|
||||
if (!"message".equals(name)) {
|
||||
logger.debug("Received unhandled event with name '{}' and data '{}'", name, data);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
RemoteopenhabEvent event = jsonParser.fromJson(data, RemoteopenhabEvent.class);
|
||||
if ("ALIVE".equals(event.type)) {
|
||||
// ignore ALIVE message
|
||||
return;
|
||||
}
|
||||
if (!"message".equals(name)) {
|
||||
logger.debug("Received unhandled event with name '{}' and data '{}'", name, data);
|
||||
return;
|
||||
}
|
||||
String itemName;
|
||||
String thingUID;
|
||||
RemoteopenhabEventPayload payload;
|
||||
|
Loading…
Reference in New Issue
Block a user