Fix Reloink alarms not working after reconnect. (#15943)

Signed-off-by: Matthew Skinner <matt@pcmus.com>
This commit is contained in:
Matthew Skinner 2023-11-23 23:39:07 +11:00 committed by GitHub
parent 3c0c402761
commit 50801be9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1424,7 +1424,7 @@ public class IpCameraHandler extends BaseThingHandler {
}
logger.debug("About to connect to the IP Camera using the ONVIF PORT at IP: {}:{}", cameraConfig.getIp(),
cameraConfig.getOnvifPort());
onvifCamera.connect(thing.getThingTypeUID().getId().equals(ONVIF_THING));
onvifCamera.connect(supportsOnvifEvents());
return;
}
if ("ffmpeg".equals(snapshotUri)) {