Update mobile app registration only on full load
This commit is contained in:
parent
01525a2929
commit
840e266381
@ -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")]));
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user