mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
This commit is contained in:
parent
57025ce961
commit
22e3d55f85
@ -43,8 +43,8 @@ public class HomeSecurityThingCapability extends Capability {
|
||||
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);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ import org.openhab.core.types.State;
|
||||
*
|
||||
*/
|
||||
@NonNullByDefault
|
||||
public class EventCameraChannelHelper extends ChannelHelper {
|
||||
public class EventCameraChannelHelper extends EventChannelHelper {
|
||||
|
||||
public EventCameraChannelHelper(Set<String> providedGroups) {
|
||||
super(providedGroups);
|
||||
|
Loading…
Reference in New Issue
Block a user