WIP #48 Notifications

This commit is contained in:
estevez-dev
2019-03-30 00:29:52 +02:00
parent 102b10ade0
commit a7cda2a35e
6 changed files with 49 additions and 26 deletions

View File

@ -76,6 +76,10 @@ class HomeAssistant {
futures.add(_getPanels());
Future.wait(futures).then((_) {
_createUI();
Connection().sendSocketMessage(
type: "subscribe_events",
additionalData: {"event_type": "state_changed"},
);
_fetchCompleter.complete();
}).catchError((e) {
_fetchCompleter.completeError(e);