70_BRAVIA: check available service APIs if available only

git-svn-id: https://svn.fhem.de/fhem/trunk@22330 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vuffiraa 2020-07-02 19:32:12 +00:00
parent cb2e5d217f
commit f521f29eaf
2 changed files with 3 additions and 1 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_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

View File

@ -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" ) {