mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix httpx DeprecationWarning (#97625)
This commit is contained in:
@@ -190,7 +190,7 @@ class RestSwitch(TemplateEntity, SwitchEntity):
|
|||||||
req: httpx.Response = await getattr(websession, self._method)(
|
req: httpx.Response = await getattr(websession, self._method)(
|
||||||
self._resource,
|
self._resource,
|
||||||
auth=self._auth,
|
auth=self._auth,
|
||||||
data=bytes(body, "utf-8"),
|
content=bytes(body, "utf-8"),
|
||||||
headers=rendered_headers,
|
headers=rendered_headers,
|
||||||
params=rendered_params,
|
params=rendered_params,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user