fix: remove array from door state response
This commit is contained in:
@@ -191,7 +191,7 @@ async def handle_root(request):
|
||||
async def handle_state(request):
|
||||
"""Handler for the /state GET request."""
|
||||
state = get_derived_state()
|
||||
return web.json_response({'door': [state]})
|
||||
return web.json_response({'door': state})
|
||||
|
||||
async def on_startup(app):
|
||||
"""Actions to perform on application startup."""
|
||||
|
Reference in New Issue
Block a user