diff --git a/fhem/CHANGED b/fhem/CHANGED index 0293a11cd..cec26d732 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: fixed attribute model warning for pre2013 - feature: 70_VIERA: new command display web page on TV's browser web address has to start with https:// - feature: 30_HUEBridge, 31_HUEDevice: try to move fhem device to new diff --git a/fhem/FHEM/70_ONKYO_AVR.pm b/fhem/FHEM/70_ONKYO_AVR.pm index 19a1e4ee0..7d440315c 100644 --- a/fhem/FHEM/70_ONKYO_AVR.pm +++ b/fhem/FHEM/70_ONKYO_AVR.pm @@ -135,13 +135,8 @@ sub ONKYO_AVR_Define($$$) { return "Invalid protocol, choose one of 2013 pre2013"; } - if ( - $hash->{PROTOCOLVERSION} eq "pre2013" - && ( !exists( $attr{$name}{model} ) - || $attr{$name}{model} ne $hash->{PROTOCOLVERSION} ) - ) - { - $attr{$name}{model} = $hash->{PROTOCOLVERSION}; + if ( $hash->{PROTOCOLVERSION} eq "pre2013" ) { + $hash->{model} = 'pre2013'; } # set default settings on first define