From c4c67747c598f0ae8cbba6e029369d6fea4b6a91 Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Sun, 15 Mar 2020 12:34:16 +0000 Subject: [PATCH] Remove services requesting --- lib/home_assistant.class.dart | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/home_assistant.class.dart b/lib/home_assistant.class.dart index 77ff13c..3600488 100644 --- a/lib/home_assistant.class.dart +++ b/lib/home_assistant.class.dart @@ -11,7 +11,6 @@ class HomeAssistant { EntityCollection entities; HomeAssistantUI ui; Map _instanceConfig = {}; - Map services; String _userName; bool childMode; HSVColor savedColor; @@ -60,7 +59,6 @@ class HomeAssistant { futures.add(_getLovelace()); } futures.add(_getConfig()); - futures.add(_getServices()); futures.add(_getUserInfo()); futures.add(_getPanels()); Future.wait(futures).then((_) { @@ -140,15 +138,6 @@ class HomeAssistant { }); } - Future _getServices() async { - await ConnectionManager().sendSocketMessage(type: "get_services").then((data) { - Logger.d("Got ${data.length} services"); - services = data; - }).catchError((e) { - Logger.w("Can't get services: $e"); - }); - } - Future _getPanels() async { panels.clear(); await ConnectionManager().sendSocketMessage(type: "get_panels").then((data) {