From 5ccb51915b131d690b8bcee46bf4add2fd33720e Mon Sep 17 00:00:00 2001 From: delmar Date: Tue, 12 Feb 2019 15:02:13 +0000 Subject: [PATCH] 70_ONKYO_AVR: 'model' Reading not written correctly git-svn-id: https://svn.fhem.de/fhem/trunk@18569 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/70_ONKYO_AVR.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 65d0c84d4..f36e67b95 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 70_ONKYO_AVR: model Reading not written correctly - feature: 93_DbRep: executeBeforeProc / executeAfterProc is now available for sqlCmd,sumValue, maxValue, minValue, diffValue, averageValue diff --git a/fhem/FHEM/70_ONKYO_AVR.pm b/fhem/FHEM/70_ONKYO_AVR.pm index 7aece23d8..353f66ea0 100644 --- a/fhem/FHEM/70_ONKYO_AVR.pm +++ b/fhem/FHEM/70_ONKYO_AVR.pm @@ -1849,8 +1849,8 @@ sub ONKYO_AVR_Read2($$$) { || $attr{$name}{model} ne $hash->{helper}{receiver}{device}{$reading} ) { - $attr{$name}{model} = - $hash->{helper}{receiver}{device}{$reading}; + readingsBulkUpdate( $hash, $reading, + $hash->{helper}{receiver}{device}{$reading} ); } }