mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
commit
83778a0f55
@ -237,9 +237,10 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
|||||||
# Did we find a handler for the incoming request?
|
# Did we find a handler for the incoming request?
|
||||||
if handle_request_method:
|
if handle_request_method:
|
||||||
# For some calls we need a valid password
|
# For some calls we need a valid password
|
||||||
|
msg = "API password missing or incorrect."
|
||||||
if require_auth and not self.authenticated:
|
if require_auth and not self.authenticated:
|
||||||
self.write_json_message(
|
self.write_json_message(msg, HTTP_UNAUTHORIZED)
|
||||||
"API password missing or incorrect.", HTTP_UNAUTHORIZED)
|
_LOGGER.warning(msg)
|
||||||
return
|
return
|
||||||
|
|
||||||
handle_request_method(self, path_match, data)
|
handle_request_method(self, path_match, data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user