Fix httpx DeprecationWarning (#97625)

This commit is contained in:
Marc Mueller
2023-08-02 20:29:36 +02:00
committed by GitHub
parent 0afa964724
commit 91a83e1ad2

View File

@@ -190,7 +190,7 @@ class RestSwitch(TemplateEntity, SwitchEntity):
req: httpx.Response = await getattr(websession, self._method)(
self._resource,
auth=self._auth,
data=bytes(body, "utf-8"),
content=bytes(body, "utf-8"),
headers=rendered_headers,
params=rendered_params,
)