mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
59_LuftdatenInfo: add missing use Encode
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14261 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fdf8d17ec3
commit
6df5ffe792
@ -24,6 +24,7 @@
|
||||
|
||||
# packages ####################################################################
|
||||
package main;
|
||||
use Encode;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
@ -262,7 +263,6 @@ sub LuftdatenInfo_ParseHttpResponse($) {
|
||||
Log3 $SELF, 4, "$TYPE ($SELF) - returned data: $data";
|
||||
|
||||
$data = encode('UTF-8', $data);
|
||||
|
||||
$data = eval{decode_json($data)};
|
||||
|
||||
if($@){
|
||||
|
Loading…
x
Reference in New Issue
Block a user