mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +00:00
72_UBUS_CLIENT.pm: Workaround for invalid JSON sent by Devolo Magic.
git-svn-id: https://svn.fhem.de/fhem/trunk@26517 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
603534f58d
commit
33c147af08
@ -490,6 +490,8 @@ sub Decode
|
||||
my $buf = shift // return;
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
$buf =~ s/{"unknown"}/{}/g;
|
||||
|
||||
my $data;
|
||||
eval { $data = decode_json($buf); };
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user