Commit d5176f5
committed
[verisure] Fix switch fall-through in event log getValue
Address Copilot review comment on #20353.
CHANNEL_LAST_EVENT_TIME fell through into CHANNEL_LAST_EVENT_DEVICE_TYPE,
which returned the device type label. As a result, getValue(CHANNEL_LAST_EVENT_TIME, ...)
could update the timestamp channel with the wrong state when eventTime was
null and updateTimeStamp(...) was skipped.
Add an explicit return for CHANNEL_LAST_EVENT_TIME so the side-effect call
to triggerEventChannels still runs but no incorrect state is returned. The
actual timestamp value is set by the subsequent updateTimeStamp call in
updateEventLogState when eventTime is non-null.
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>1 parent 6477d08 commit d5176f5
1 file changed
Lines changed: 1 addition & 0 deletions
File tree
- bundles/org.openhab.binding.verisure/src/main/java/org/openhab/binding/verisure/internal/handler
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
0 commit comments