|
28 | 28 | if TYPE_CHECKING: |
29 | 29 | from .appdaemon import AppDaemon |
30 | 30 |
|
| 31 | + |
31 | 32 | def securedata(myfunc): |
32 | 33 | """ |
33 | 34 | Take care of streams and service calls |
@@ -886,7 +887,7 @@ def get_response(self, request, code, error): |
886 | 887 | return web.Response(body=res, status=code) |
887 | 888 |
|
888 | 889 | def get_web_response(self, request, code, error): |
889 | | - res = "<html><head><title>{} {}</title></head><body><h1>{} {}</h1>Error in Web Service" " Call</body></html>".format(code, error, code, error) |
| 890 | + res = "<html><head><title>{} {}</title></head><body><h1>{} {}</h1>Error in Web Service Call</body></html>".format(code, error, code, error) |
890 | 891 | app = request.match_info.get("app", "system") |
891 | 892 | if code == 200: |
892 | 893 | self.access.info("Web Call to %s: status: %s", app, code) |
@@ -991,7 +992,7 @@ async def dispatch_app_endpoint(self, endpoint, request): |
991 | 992 | async def register_route(self, cb: Callable, route: str, name: str, **kwargs: Optional[dict]) -> str: |
992 | 993 | if not asyncio.iscoroutinefunction(cb): # must be async function |
993 | 994 | self.logger.warning( |
994 | | - ("Could not Register Callback for %s, using Route %s as Web Server Route. Callback must be" " Async"), |
| 995 | + ("Could not Register Callback for %s, using Route %s as Web Server Route. Callback must be Async"), |
995 | 996 | name, |
996 | 997 | route, |
997 | 998 | ) |
|
0 commit comments