2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

70_KODI: fixed crash on boolean responses

git-svn-id: https://svn.fhem.de/fhem/trunk@18827 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vbs 2019-03-08 15:42:26 +00:00
parent 7e49cd6904
commit f89ab08b06

View File

@ -775,7 +775,7 @@ sub KODI_ProcessResponse($$)
}
else {
my $result = $obj->{result};
if($result && $result ne 'OK') {
if($result && $result ne 'OK' && $result ne JSON::true) {
readingsBeginUpdate($hash);
foreach my $key (keys %$result) {
if ($key eq 'item') {