Skip to content

Commit

Permalink
Improve handling of interrupted request by alllowing retries
Browse files Browse the repository at this point in the history
Rebased
Reintroducing TOO_MANY_REQUESTS
Rebased

Signed-off-by: clinique <[email protected]>
Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
clinique committed Sep 25, 2024
1 parent be652a1 commit 6ef1549
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public CameraCapability(CommonInterface handler, NetatmoDescriptionProvider desc
List<ChannelHelper> channelHelpers) {
super(handler, descriptionProvider, channelHelpers);
this.personChannelUID = new ChannelUID(thingUID, GROUP_LAST_EVENT, CHANNEL_EVENT_PERSON_ID);
this.cameraHelper = (CameraChannelHelper) channelHelpers.stream().filter(c -> c instanceof CameraChannelHelper)
this.cameraHelper = (CameraChannelHelper) channelHelpers.stream().filter(CameraChannelHelper.class::isInstance)
.findFirst().orElseThrow(() -> new IllegalArgumentException(
"CameraCapability must find a CameraChannelHelper, please file a bug report."));
}
Expand Down

0 comments on commit 6ef1549

Please sign in to comment.