Check cloud trusted proxies (#24395)
This commit is contained in:
1 parent
7d9988fd75
commit
14066dfb5a
5 files changed
+83
-5
No files matched your search
@@ -18,7 +18,8 @@ from homeassistant.components.google_assistant import helpers as google_helpers
|
||||
|
||||
from .const import (
|
||||
DOMAIN, REQUEST_TIMEOUT, PREF_ENABLE_ALEXA, PREF_ENABLE_GOOGLE,
|
||||
PREF_GOOGLE_SECURE_DEVICES_PIN, InvalidTrustedNetworks)
|
||||
PREF_GOOGLE_SECURE_DEVICES_PIN, InvalidTrustedNetworks,
|
||||
InvalidTrustedProxies)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -52,7 +53,10 @@ SCHEMA_WS_HOOK_DELETE = websocket_api.BASE_COMMAND_MESSAGE_SCHEMA.extend({
|
||||
_CLOUD_ERRORS = {
|
||||
InvalidTrustedNetworks:
|
||||
(500, 'Remote UI not compatible with 127.0.0.1/::1'
|
||||
' as a trusted network.')
|
||||
' as a trusted network.'),
|
||||
InvalidTrustedProxies:
|
||||
(500, 'Remote UI not compatible with 127.0.0.1/::1'
|
||||
' as trusted proxies.'),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user