mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix typo (#3108)
This commit is contained in:
parent
d8ad4e1584
commit
ed7a227035
@ -24,21 +24,21 @@ from homeassistant.core import split_entity_id
|
|||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
DOMAIN = "http"
|
DOMAIN = 'http'
|
||||||
REQUIREMENTS = ("cherrypy==7.1.0", "static3==0.7.0", "Werkzeug==0.11.10")
|
REQUIREMENTS = ('cherrypy==7.1.0', 'static3==0.7.0', 'Werkzeug==0.11.10')
|
||||||
|
|
||||||
CONF_API_PASSWORD = "api_password"
|
CONF_API_PASSWORD = 'api_password'
|
||||||
CONF_SERVER_HOST = "server_host"
|
CONF_SERVER_HOST = 'server_host'
|
||||||
CONF_SERVER_PORT = "server_port"
|
CONF_SERVER_PORT = 'server_port'
|
||||||
CONF_DEVELOPMENT = "development"
|
CONF_DEVELOPMENT = 'development'
|
||||||
CONF_SSL_CERTIFICATE = 'ssl_certificate'
|
CONF_SSL_CERTIFICATE = 'ssl_certificate'
|
||||||
CONF_SSL_KEY = 'ssl_key'
|
CONF_SSL_KEY = 'ssl_key'
|
||||||
CONF_CORS_ORIGINS = 'cors_allowed_origins'
|
CONF_CORS_ORIGINS = 'cors_allowed_origins'
|
||||||
|
|
||||||
DATA_API_PASSWORD = 'api_password'
|
DATA_API_PASSWORD = 'api_password'
|
||||||
|
|
||||||
# TLS configuation follows the best-practice guidelines
|
# TLS configuation follows the best-practice guidelines specified here:
|
||||||
# specified here: https://wiki.mozilla.org/Security/Server_Side_TLS
|
# https://wiki.mozilla.org/Security/Server_Side_TLS
|
||||||
# Intermediate guidelines are followed.
|
# Intermediate guidelines are followed.
|
||||||
SSL_VERSION = ssl.PROTOCOL_SSLv23
|
SSL_VERSION = ssl.PROTOCOL_SSLv23
|
||||||
SSL_OPTS = ssl.OP_NO_SSLv2 | ssl.OP_NO_SSLv3
|
SSL_OPTS = ssl.OP_NO_SSLv2 | ssl.OP_NO_SSLv3
|
||||||
@ -478,7 +478,7 @@ class HomeAssistantView(object):
|
|||||||
authenticated = True
|
authenticated = True
|
||||||
|
|
||||||
if self.requires_auth and not authenticated:
|
if self.requires_auth and not authenticated:
|
||||||
_LOGGER.warning('Login attempt or request with an invalid'
|
_LOGGER.warning('Login attempt or request with an invalid '
|
||||||
'password from %s', request.remote_addr)
|
'password from %s', request.remote_addr)
|
||||||
raise Unauthorized()
|
raise Unauthorized()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user