Skip to content

Commit 88c5309

Browse files
committed
fix
1 parent 30428c2 commit 88c5309

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

appdaemon/http.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
if TYPE_CHECKING:
2929
from .appdaemon import AppDaemon
3030

31+
3132
def securedata(myfunc):
3233
"""
3334
Take care of streams and service calls
@@ -886,7 +887,7 @@ def get_response(self, request, code, error):
886887
return web.Response(body=res, status=code)
887888

888889
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)
890891
app = request.match_info.get("app", "system")
891892
if code == 200:
892893
self.access.info("Web Call to %s: status: %s", app, code)
@@ -991,7 +992,7 @@ async def dispatch_app_endpoint(self, endpoint, request):
991992
async def register_route(self, cb: Callable, route: str, name: str, **kwargs: Optional[dict]) -> str:
992993
if not asyncio.iscoroutinefunction(cb): # must be async function
993994
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"),
995996
name,
996997
route,
997998
)

0 commit comments

Comments
 (0)