Update mobile app registration only on full load

This commit is contained in:
Yegor Vialov 2020-05-16 21:25:58 +00:00
parent 01525a2929
commit 840e266381
2 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,6 @@ class HomeAssistant {
if (isComponentEnabled('mobile_app')) {
_createUI();
_fetchCompleter.complete();
if (!uiOnly) MobileAppIntegrationManager.checkAppRegistration();
} else {
_fetchCompleter.completeError(HACException("Mobile app component not found", actions: [HAErrorAction.tryAgain(), HAErrorAction(type: HAErrorActionType.URL ,title: "Help",url: "http://ha-client.app/docs#mobile-app-integration")]));
}

View File

@ -103,6 +103,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
_fetchData(useCache: true);
LocationManager();
StartupUserMessagesManager().checkMessagesToShow();
MobileAppIntegrationManager.checkAppRegistration();
});
}, onError: (e) {
if (e is HACNotSetUpException) {