Skip to content

Commit

Permalink
web: fix error in state api because of remove param
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Nov 26, 2024
1 parent 38a78d4 commit 928dde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_viewer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def websocket_handler(request):
return ws


def state():
def state(_: web.Request):
global last_inverter_data
res = web.json_response(json.loads(last_inverter_data), headers={
'Access-Control-Allow-Origin': 'http://localhost:5173'})
Expand Down

0 comments on commit 928dde7

Please sign in to comment.