2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

70_ONKYO_AVR: trying to improve reporting of model

git-svn-id: https://svn.fhem.de/fhem/trunk@20498 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
delmar 2019-11-12 00:57:02 +00:00
parent f1eff07960
commit 9e82a98c6d
2 changed files with 3 additions and 13 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.
- 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

View File

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