diff --git a/fhem/CHANGED b/fhem/CHANGED index 63d6cb5a2..1e66157fb 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. + - change: 70_ONKYO_AVR: trying to improve reporting of model - feature: 31_HUEDevice: handle IODev rename - bugfix: 73_PRESENCE: add missing attributes retryCount and retryInterval to AttrList diff --git a/fhem/FHEM/70_ONKYO_AVR.pm b/fhem/FHEM/70_ONKYO_AVR.pm index 353f66ea0..3aed21eb1 100644 --- a/fhem/FHEM/70_ONKYO_AVR.pm +++ b/fhem/FHEM/70_ONKYO_AVR.pm @@ -1838,20 +1838,9 @@ sub ONKYO_AVR_Read2($$$) { # Model $reading = "model"; - if ( - defined( $hash->{helper}{receiver}{device}{$reading} ) - && ( !defined( $hash->{READINGS}{$reading}{VAL} ) - || $hash->{READINGS}{$reading}{VAL} ne - $hash->{helper}{receiver}{device}{$reading} ) - ) + if ( defined( $hash->{helper}{receiver}{device}{$reading} )) { - if ( !exists( $attr{$name}{model} ) - || $attr{$name}{model} ne - $hash->{helper}{receiver}{device}{$reading} ) - { - readingsBulkUpdate( $hash, $reading, - $hash->{helper}{receiver}{device}{$reading} ); - } + $hash->{model} = $hash->{helper}{receiver}{device}{$reading}; } # Firmware version