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) {