Skip to content

Commit

Permalink
Fix error introduced in openhab#16681 (openhab#16703)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
  • Loading branch information
clinique committed Apr 29, 2024
1 parent 57025ce commit 22e3d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public HomeSecurityThingCapability(CommonInterface handler, NetatmoDescriptionPr
List<ChannelHelper> channelHelpers) {
super(handler);
this.descriptionProvider = descriptionProvider;
this.eventHelper = (EventChannelHelper) channelHelpers.stream().filter(c -> c instanceof EventChannelHelper)
.findFirst().orElseThrow(() -> new IllegalArgumentException(
this.eventHelper = channelHelpers.stream().filter(EventChannelHelper.class::isInstance)
.map(EventChannelHelper.class::cast).findFirst().orElseThrow(() -> new IllegalArgumentException(
"HomeSecurityThingCapability must find an EventChannelHelper, please file a bug report."));
eventHelper.setModuleType(moduleType);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*
*/
@NonNullByDefault
public class EventCameraChannelHelper extends ChannelHelper {
public class EventCameraChannelHelper extends EventChannelHelper {

public EventCameraChannelHelper(Set<String> providedGroups) {
super(providedGroups);
Expand Down

0 comments on commit 22e3d55

Please sign in to comment.