fix(SatiSocket): revert call fix
This commit is contained in:
		| @ -4,7 +4,7 @@ build-backend = "hatchling.build" | |||||||
|  |  | ||||||
| [project] | [project] | ||||||
| name = "sati-ac" | name = "sati-ac" | ||||||
| version = "0.1.2" | version = "0.1.3" | ||||||
| authors = [ | authors = [ | ||||||
|     { name="sati.ac", email="sati.ac@proton.me" } |     { name="sati.ac", email="sati.ac@proton.me" } | ||||||
| ] | ] | ||||||
|  | |||||||
| @ -109,9 +109,7 @@ class SatiSocket: | |||||||
|         if msg_type in ( 'auth', 'call' ): |         if msg_type in ( 'auth', 'call' ): | ||||||
|             return await fut |             return await fut | ||||||
|  |  | ||||||
|     async def call(self, method: str, data: dict | None = None) -> SatiDict: |     async def call(self, method: str, data: dict = {}) -> SatiDict: | ||||||
|         if data == None: data = {} |  | ||||||
|  |  | ||||||
|         if self.__state == STATE_CONNECTED: |         if self.__state == STATE_CONNECTED: | ||||||
|             resp = await self.__send('call', { |             resp = await self.__send('call', { | ||||||
|                 'method': method, |                 'method': method, | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user