From 91a83e1ad290de987fed48fee7f042e1ca5b01cc Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 2 Aug 2023 20:29:36 +0200 Subject: [PATCH] Fix httpx DeprecationWarning (#97625) --- homeassistant/components/rest/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/rest/switch.py b/homeassistant/components/rest/switch.py index 342808f3250..827f4bad0b3 100644 --- a/homeassistant/components/rest/switch.py +++ b/homeassistant/components/rest/switch.py @@ -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, )