From f97fc8a90794c49edf5a30eaa8e4983bf52a6b0d Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 13 Aug 2024 11:53:24 +0200 Subject: [PATCH] Remove unnecessary assignment of Template.hass from rest (#123772) --- homeassistant/components/rest/switch.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/homeassistant/components/rest/switch.py b/homeassistant/components/rest/switch.py index 219084ea683..e4bb1f797d9 100644 --- a/homeassistant/components/rest/switch.py +++ b/homeassistant/components/rest/switch.py @@ -151,9 +151,6 @@ class RestSwitch(ManualTriggerEntity, SwitchEntity): self._timeout: int = config[CONF_TIMEOUT] self._verify_ssl: bool = config[CONF_VERIFY_SSL] - self._body_on.hass = hass - self._body_off.hass = hass - async def async_added_to_hass(self) -> None: """Handle adding to Home Assistant.""" await super().async_added_to_hass()