From f521f29eafbe3ae09ffa619b19e0628a455a32fb Mon Sep 17 00:00:00 2001 From: vuffiraa <> Date: Thu, 2 Jul 2020 19:32:12 +0000 Subject: [PATCH] 70_BRAVIA: check available service APIs if available only git-svn-id: https://svn.fhem.de/fhem/trunk@22330 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/70_BRAVIA.pm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 9640222b6..669eff200 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_BRAVIA: check available service APIs if available only - change: 49_SSCam / 49_SSCamSTRM: switch to packages, changes according PBP - bugfix: 73_AutoShuttersControl: fix commandref and bug in shading function change code diff --git a/fhem/FHEM/70_BRAVIA.pm b/fhem/FHEM/70_BRAVIA.pm index 08e134050..2769ee2f0 100644 --- a/fhem/FHEM/70_BRAVIA.pm +++ b/fhem/FHEM/70_BRAVIA.pm @@ -1348,7 +1348,8 @@ sub ProcessCommandData ($$$) { push(@$successor, ["getSystemInformation"]) if ( ReadingsVal($name, "name", "0") eq "0" || ReadingsVal($name, "model", "0") eq "0" ); push(@$successor, ["getSupportedApiInfo"]) - if ( !defined($hash->{helper}{services}) || scalar($hash->{helper}{services}) == 0 ); + if ( ReadingsVal( $name, "requestFormat", "" ) eq "json" && + (!defined($hash->{helper}{services}) || scalar($hash->{helper}{services}) == 0) ); # read content information if ( ReadingsVal($name, "generation", "1.0") ne "1.0" ) {