Remove unnecessary assignment of Template.hass from rest (#123772)

This commit is contained in:
Erik Montnemery
2024-08-13 11:53:24 +02:00
committed by GitHub
parent 314ee9c74c
commit f97fc8a907

View File

@@ -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()