removed _state suffix from all ws events

This commit is contained in:
Maxim Devaev
2025-01-05 15:19:04 +02:00
parent 5a61ddecd3
commit 4488365dfb
6 changed files with 23 additions and 23 deletions

View File

@@ -75,7 +75,7 @@ class PstClient:
if msg.type != aiohttp.WSMsgType.TEXT:
raise PstError(f"Unexpected message type: {msg!r}")
(event_type, event) = htserver.parse_ws_event(msg.data)
if event_type == "storage_state":
if event_type == "storage":
if not event["data"]["write_allowed"]:
raise PstError("Write is not allowed")
path = event["data"]["path"]