mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
70_KODI: fixed crash on boolean responses
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18827 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
76693cb115
commit
c88a770447
@ -775,7 +775,7 @@ sub KODI_ProcessResponse($$)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
my $result = $obj->{result};
|
my $result = $obj->{result};
|
||||||
if($result && $result ne 'OK') {
|
if($result && $result ne 'OK' && $result ne JSON::true) {
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
foreach my $key (keys %$result) {
|
foreach my $key (keys %$result) {
|
||||||
if ($key eq 'item') {
|
if ($key eq 'item') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user