diff --git a/homeassistant/components/template/cover.py b/homeassistant/components/template/cover.py index 13828b960fd..870e4035c2f 100644 --- a/homeassistant/components/template/cover.py +++ b/homeassistant/components/template/cover.py @@ -229,19 +229,6 @@ class CoverTemplate(CoverDevice): self._entities = entity_ids self._available = True - if self._template is not None: - self._template.hass = self.hass - if self._position_template is not None: - self._position_template.hass = self.hass - if self._tilt_template is not None: - self._tilt_template.hass = self.hass - if self._icon_template is not None: - self._icon_template.hass = self.hass - if self._entity_picture_template is not None: - self._entity_picture_template.hass = self.hass - if self._availability_template is not None: - self._availability_template.hass = self.hass - async def async_added_to_hass(self): """Register callbacks.""" diff --git a/homeassistant/components/template/fan.py b/homeassistant/components/template/fan.py index 89f54444376..14381b82e62 100644 --- a/homeassistant/components/template/fan.py +++ b/homeassistant/components/template/fan.py @@ -189,18 +189,12 @@ class TemplateFan(FanEntity): self._oscillating = None self._direction = None - self._template.hass = self.hass if self._speed_template: - self._speed_template.hass = self.hass self._supported_features |= SUPPORT_SET_SPEED if self._oscillating_template: - self._oscillating_template.hass = self.hass self._supported_features |= SUPPORT_OSCILLATE if self._direction_template: - self._direction_template.hass = self.hass self._supported_features |= SUPPORT_DIRECTION - if self._availability_template: - self._availability_template.hass = self.hass self._entities = entity_ids # List of valid speeds diff --git a/homeassistant/components/template/light.py b/homeassistant/components/template/light.py index 0f70f8a358b..c5512461f34 100644 --- a/homeassistant/components/template/light.py +++ b/homeassistant/components/template/light.py @@ -174,19 +174,6 @@ class LightTemplate(Light): self._entities = entity_ids self._available = True - if self._template is not None: - self._template.hass = self.hass - if self._level_template is not None: - self._level_template.hass = self.hass - if self._icon_template is not None: - self._icon_template.hass = self.hass - if self._entity_picture_template is not None: - self._entity_picture_template.hass = self.hass - if self._availability_template is not None: - self._availability_template.hass = self.hass - if self._temperature_template is not None: - self._temperature_template.hass = self.hass - @property def brightness(self): """Return the brightness of the light."""