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, )