diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index 2641f5b..7b7d24d 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -415,21 +415,21 @@ async def _async_update_data(self): return self.data async def async_auth_start(self): - result = await self.async_request('car/control/ignition/authorize', data={ + result = await self.async_request('car/control/ignition/authorize', json={ 'vin': self.vin, }) data = result.get('data') or {} return data async def async_search_car(self): - result = await self.async_request('car/control/searchCar', data={ + result = await self.async_request('car/control/searchCar', json={ 'vin': self.vin, }) data = result.get('data') or {} return data async def async_control_window(self, status=0): - result = await self.async_request('car/control/window', data={ + result = await self.async_request('car/control/window', json={ 'vin': self.vin, 'status': status, })