70_ONKYO_AVR: fixed attribute model warning for pre2013

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20992 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
delmar 2020-01-15 22:53:09 +00:00
parent 7069fad419
commit 2d3ab10a1b
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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