Resolves #389 Improve app registration checking
This commit is contained in:
@ -106,9 +106,9 @@ class _ConfigPanelWidgetState extends State<ConfigPanelWidget> {
|
||||
}
|
||||
|
||||
updateRegistration() {
|
||||
HomeAssistant().checkAppRegistration(forceUpdate: true).then((_) {
|
||||
Navigator.of(context).pop();
|
||||
eventBus.fire(ShowDialogEvent(
|
||||
HomeAssistant().checkAppRegistration().then((_) {
|
||||
//Navigator.of(context).pop();
|
||||
/*eventBus.fire(ShowDialogEvent(
|
||||
title: "App registration updated",
|
||||
body: "To start using notifications you need to restart your Home Assistant",
|
||||
positiveText: "Restart now",
|
||||
@ -116,7 +116,7 @@ class _ConfigPanelWidgetState extends State<ConfigPanelWidget> {
|
||||
onPositive: () {
|
||||
Connection().callService(domain: "homeassistant", service: "restart", entityId: null);
|
||||
},
|
||||
));
|
||||
));*/
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user