fix(SatiSocket): revert call fix

master
sati.ac 2023-09-08 15:52:49 +03:00
parent bfa6d717c2
commit f02375bfe9
2 changed files with 2 additions and 4 deletions

View File

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "sati-ac"
version = "0.1.2"
version = "0.1.3"
authors = [
{ name="sati.ac", email="sati.ac@proton.me" }
]

View File

@ -109,9 +109,7 @@ class SatiSocket:
if msg_type in ( 'auth', 'call' ):
return await fut
async def call(self, method: str, data: dict | None = None) -> SatiDict:
if data == None: data = {}
async def call(self, method: str, data: dict = {}) -> SatiDict:
if self.__state == STATE_CONNECTED:
resp = await self.__send('call', {
'method': method,