From 74260d7b51f1748be14d9c2f148ced97aa1652b8 Mon Sep 17 00:00:00 2001 From: wuehler <> Date: Sun, 27 May 2018 10:45:08 +0000 Subject: [PATCH] 74_Unifi: fixed import encode_json for newest libs git-svn-id: https://svn.fhem.de/fhem/trunk@16784 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/74_Unifi.pm | 3 +++ 2 files changed, 4 insertions(+) diff --git a/fhem/CHANGED b/fhem/CHANGED index 75fc644d3..f3fc40eee 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -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. + - fixed: 74_Unifi: import encode_json for newest libs - change: 10_KNX: new major release. See commandref for details. The following attributes are deprecated now: readonly, listenonly, slider and useSetExtensions. diff --git a/fhem/FHEM/74_Unifi.pm b/fhem/FHEM/74_Unifi.pm index 62b2ef8f4..bb877fb97 100644 --- a/fhem/FHEM/74_Unifi.pm +++ b/fhem/FHEM/74_Unifi.pm @@ -24,6 +24,8 @@ # - fixed: 74_Unifi: restart-typo in poe # V 2.2.3 # - fixed: 74_Unifi: Cookies for UnifiController 5.9.4 +# V 2.2.4 +# - fixed: 74_Unifi: import encode_json for newest libs package main; @@ -32,6 +34,7 @@ use warnings; use HttpUtils; use POSIX; use JSON qw(decode_json); +use JSON qw(encode_json); ##############################################################################} ### Forward declarations ####################################################{