From 29be41b5182c30eaf79c53eb3e8fa052e62b594d Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 20 Apr 2021 22:17:18 +0000
Subject: [PATCH] Anzeige des Schaltzustands von Geraeten

---
 src/de/uhilger/mediaz/api/StorageHandler.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/mediaz/api/StorageHandler.java b/src/de/uhilger/mediaz/api/StorageHandler.java
index 5d8db1b..62dc218 100644
--- a/src/de/uhilger/mediaz/api/StorageHandler.java
+++ b/src/de/uhilger/mediaz/api/StorageHandler.java
@@ -140,7 +140,10 @@
                newList.add(g);
             }
           }
-          list = newList;
+          //list = newList;               
+          Gson gson = new Gson();
+          Object o = gson.fromJson(bodyLesen(e), fs.typeFromName(type).getType());
+          return gson.toJson(newList);
         } else {        
           list = fs.list(type);
         }

--
Gitblit v1.9.3