fix: remove array from door state response

This commit is contained in:
2025-08-01 20:46:00 +00:00
parent 7a26f91cf1
commit f0f16a6841

View File

@@ -191,7 +191,7 @@ async def handle_root(request):
async def handle_state(request): async def handle_state(request):
"""Handler for the /state GET request.""" """Handler for the /state GET request."""
state = get_derived_state() state = get_derived_state()
return web.json_response({'door': [state]}) return web.json_response({'door': state})
async def on_startup(app): async def on_startup(app):
"""Actions to perform on application startup.""" """Actions to perform on application startup."""