-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check host network connectivity (#128)
* Check host network connectivity Check host network connectivity and offer DNS alternatives in case host internet is not available. This allows users with broken DNS setup to configure the host network with a working DNS. Requires home-assistant/supervisor#5321. * Apply suggestions from code review Co-authored-by: Bram Kragten <[email protected]> * Remove network issue warning once resolved * Make const var again All consts need to be assigned on creation. This is not possible in this case. * Improve wording * Replace try with use * Improve network issue wording * Rename function, call schedule outside of then() The idea is to call schedule() always, no matter if there is an error or not. So call it outside of the then() block. * Use let --------- Co-authored-by: Bram Kragten <[email protected]>
- Loading branch information
1 parent
06b1fb1
commit 67abf8b
Showing
3 changed files
with
168 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters