Moved stuff away from core. Made component interface more uniform.
This commit is contained in:
1 parent
b387f9d9d7
commit
0fc3d359cb
13 files changed
+302
-158
No files matched your search
@@ -592,6 +592,10 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
|
||||
self._message("Service {}/{} called.".format(domain, service))
|
||||
|
||||
except ha.ServiceDoesNotExistError:
|
||||
# If the service does not exist
|
||||
self._message('Service does not exist', HTTP_BAD_REQUEST)
|
||||
|
||||
except KeyError:
|
||||
# Occurs if domain or service does not exist in data
|
||||
self._message("No domain or service received.", HTTP_BAD_REQUEST)
|
||||
|
||||
Reference in new issue
Block a user