From cf186b1fdac3c8b8891aab15096b9c0dae8d9cde Mon Sep 17 00:00:00 2001 From: delmar <> Date: Wed, 15 Jan 2020 22:53:09 +0000 Subject: [PATCH] 70_ONKYO_AVR: fixed attribute model warning for pre2013 git-svn-id: https://svn.fhem.de/fhem/trunk@20992 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/70_ONKYO_AVR.pm | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) 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