-
-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Add config for trusted networks auth provider #21111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
ae04133
58de53e
c9f5bef
0ff3940
ec71ca3
fbb0da6
9b7a97e
22784fb
353b352
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,13 +86,12 @@ async def async_from_config_dict(config: Dict[str, Any], | |
| log_no_color) | ||
|
|
||
| core_config = config.get(core.DOMAIN, {}) | ||
| has_api_password = bool((config.get('http') or {}).get('api_password')) | ||
| has_trusted_networks = bool((config.get('http') or {}) | ||
| .get('trusted_networks')) | ||
| has_api_password = bool(config.get('http', {}).get('api_password')) | ||
| trusted_networks = config.get('http', {}).get('trusted_networks') | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason we had an http:And then it can be None? Although if I remember correctly, we do replace
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
http: |
||
|
|
||
| try: | ||
| await conf_util.async_process_ha_core_config( | ||
| hass, core_config, has_api_password, has_trusted_networks) | ||
| hass, core_config, has_api_password, trusted_networks) | ||
| except vol.Invalid as config_err: | ||
| conf_util.async_log_exception( | ||
| config_err, 'homeassistant', core_config, hass) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.