Skip to content

Commit

Permalink
Fix httpx DeprecationWarning (#97625)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Aug 2, 2023
1 parent 0afa964 commit 91a83e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/rest/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async def set_device_state(self, body: Any) -> httpx.Response:
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,
)
Expand Down

0 comments on commit 91a83e1

Please sign in to comment.