Update mobile app registration only on full load
This commit is contained in:
@ -75,7 +75,6 @@ class HomeAssistant {
|
|||||||
if (isComponentEnabled('mobile_app')) {
|
if (isComponentEnabled('mobile_app')) {
|
||||||
_createUI();
|
_createUI();
|
||||||
_fetchCompleter.complete();
|
_fetchCompleter.complete();
|
||||||
if (!uiOnly) MobileAppIntegrationManager.checkAppRegistration();
|
|
||||||
} else {
|
} 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")]));
|
_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);
|
_fetchData(useCache: true);
|
||||||
LocationManager();
|
LocationManager();
|
||||||
StartupUserMessagesManager().checkMessagesToShow();
|
StartupUserMessagesManager().checkMessagesToShow();
|
||||||
|
MobileAppIntegrationManager.checkAppRegistration();
|
||||||
});
|
});
|
||||||
}, onError: (e) {
|
}, onError: (e) {
|
||||||
if (e is HACNotSetUpException) {
|
if (e is HACNotSetUpException) {
|
||||||
|
Reference in New Issue
Block a user