From 2a2076ba4ac0db4f6edfc8ad2fc297bbe44e1d58 Mon Sep 17 00:00:00 2001 From: vuffiraa <> Date: Sun, 25 Nov 2018 18:19:21 +0000 Subject: [PATCH] 70_BRAVIA.pm: removed unnecessary internals name, generation, model git-svn-id: https://svn.fhem.de/fhem/trunk@17844 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 4 +--- fhem/FHEM/70_BRAVIA.pm | 12 ------------ 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 0eb2759ad..11fe58433 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,8 +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. - - feature: 49_SSCam: V7.4.0, new set command createReadingsGroup, change set - snap to avoid insufficiency get snapinfo if camera - are very similar in SVS + - bugfix: 70_BRAVIA: removed unnecessary internals name, generation, model - bugfix: 74_XiaomiBTLESens: fix humidity bug - bugfix: 88_HMCCU: Some minor bugs fixed - bugfix: 42_XiaomiBTLESens: bugfix humidity reading diff --git a/fhem/FHEM/70_BRAVIA.pm b/fhem/FHEM/70_BRAVIA.pm index b2d46e068..ddb7b8f2c 100644 --- a/fhem/FHEM/70_BRAVIA.pm +++ b/fhem/FHEM/70_BRAVIA.pm @@ -678,12 +678,6 @@ sub BRAVIA_Define($$) { $hash->{helper}{HEADER} = 'X-CERS-DEVICE-ID: fhem_remote'; - $hash->{name} = ReadingsVal($name, "name", ""); - - $hash->{model} = ReadingsVal($name, "model", ""); - - $hash->{generation} = ReadingsVal($name, "generation", ""); - unless ( defined( AttrVal( $name, "webCmd", undef ) ) ) { $attr{$name}{webCmd} = 'volume:channelUp:channelDown'; } @@ -1318,9 +1312,6 @@ sub BRAVIA_ProcessCommandData ($$) { readingsBulkUpdate( $hash, "country", $sysInfo->{region} ); readingsBulkUpdate( $hash, "model", $sysInfo->{model} ); readingsBulkUpdate( $hash, "macAddr", $sysInfo->{macAddr} ); - $hash->{name} = $sysInfo->{name}; - $hash->{model} = $sysInfo->{model}; - $hash->{generation} = $sysInfo->{generation}; } else { readingsBulkUpdate( $hash, "name", $return->{name} ); readingsBulkUpdate( $hash, "generation", $return->{generation} ); @@ -1328,9 +1319,6 @@ sub BRAVIA_ProcessCommandData ($$) { readingsBulkUpdate( $hash, "language", $return->{language} ); readingsBulkUpdate( $hash, "country", $return->{country} ); readingsBulkUpdate( $hash, "model", $return->{modelName} ); - $hash->{name} = $return->{name}; - $hash->{model} = $return->{modelName}; - $hash->{generation} = $return->{generation}; } readingsEndUpdate( $hash, 1 ); }