Skip to content

Commit

Permalink
Adding Siren capability to Presence Outdoor Camera
Browse files Browse the repository at this point in the history
Resolves #14466
Rebased and solving conflict

Signed-off-by: clinique <gael@lhopital.org>
  • Loading branch information
clinique committed Mar 27, 2023
1 parent c05f31c commit e1ff24a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import static org.openhab.binding.netatmo.internal.NetatmoBindingConstants.*;
import static org.openhab.binding.netatmo.internal.utils.ChannelTypeUtils.*;
import static org.openhab.binding.netatmo.internal.utils.ChannelTypeUtils.toStringType;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -107,7 +106,8 @@ protected void updateWebhookEvent(WebhookEvent event) {
// The channel should get triggered at last (after super and sub methods), because this allows rules to access
// the new updated data from the other channels.
final String eventType = event.getEventType().name();
handler.getHomeHandler().ifPresent(homeHandler -> homeHandler.triggerChannel(CHANNEL_HOME_EVENT, eventType));
handler.recurseUpToHomeHandler(handler)
.ifPresent(homeHandler -> homeHandler.triggerChannel(CHANNEL_HOME_EVENT, eventType));
handler.triggerChannel(CHANNEL_HOME_EVENT, eventType);
}

Expand Down

0 comments on commit e1ff24a

Please sign in to comment.