Skip to content

Commit

Permalink
[deconz] Re-add battery channel (openhab#8005)
Browse files Browse the repository at this point in the history
Fixes openhab#7920

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
  • Loading branch information
J-N-K authored and andrewfg committed Aug 31, 2020
1 parent 0eb8854 commit 14c4e3c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ protected void valueUpdated(ChannelUID channelUID, SensorConfig newConfig) {
protected void valueUpdated(String channelID, SensorState newState, boolean initializing) {
super.valueUpdated(channelID, newState, initializing);
switch (channelID) {
case CHANNEL_BATTERY_LEVEL:
updateDecimalTypeChannel(channelID, newState.battery);
break;
case CHANNEL_LIGHT:
Boolean dark = newState.dark;
if (dark != null) {
Expand Down

0 comments on commit 14c4e3c

Please sign in to comment.