aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael McVady <michaelm@telnyx.com>2024-01-29 19:50:10 -0600
committerMichael McVady <michaelm@telnyx.com>2024-01-29 19:50:10 -0600
commit62c313996536cb88a3ea09f4344cb2bdaa5cacca (patch)
tree286831eec8bead742265bae1fd2aaa5d9143bab9
parent69c300dd4b84874944f58b7a5f764fc5af896dba (diff)
Fix HTML
-rw-r--r--app.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app.py b/app.py
index 27f7a9e..ab23e45 100644
--- a/app.py
+++ b/app.py
@@ -16,6 +16,9 @@ lifxlan = LifxLAN()
DEFAULT_COLOR = "#FF0000"
TEMPLATE_STR = """<!DOCTYPE html>
<html>
+<head>
+<title>lux</title>
+</head>
<body style="background-color: {{ color }}">
<h1>{{ message }}</h1>
</body>
@@ -61,7 +64,7 @@ async def get_index() -> Template:
)
return Template(
- template_str=TEMPLATE_STR, context={"color": rgb_hex, "message": ""}
+ template_str=TEMPLATE_STR, context={"color": rgb_hex, "message": "&nbsp;"}
)