mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Remove unnecessary assignment of Template.hass from rest (#123772)
This commit is contained in:
parent
314ee9c74c
commit
f97fc8a907
@ -151,9 +151,6 @@ class RestSwitch(ManualTriggerEntity, SwitchEntity):
|
|||||||
self._timeout: int = config[CONF_TIMEOUT]
|
self._timeout: int = config[CONF_TIMEOUT]
|
||||||
self._verify_ssl: bool = config[CONF_VERIFY_SSL]
|
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:
|
async def async_added_to_hass(self) -> None:
|
||||||
"""Handle adding to Home Assistant."""
|
"""Handle adding to Home Assistant."""
|
||||||
await super().async_added_to_hass()
|
await super().async_added_to_hass()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user