Skip to content

Commit

Permalink
test registered views
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Dec 12, 2024
1 parent 7fc19e1 commit cb7d935
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/eltako/front_end/info_page_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ class InfoPageView(HomeAssistantView):

async def get(self, request):
"""Handle GET request."""

headers = request.headers
# Log the headers for debugging
request.app["hass"].logger.debug(f"Request headers: {headers}")

return web.Response(
text="<html><body><h1>Hello, Home Assistant!</h1></body></html>",
content_type="text/html"
Expand Down

0 comments on commit cb7d935

Please sign in to comment.