Skip to content

Commit e5fe243

Browse files
authored
Remove device id references from button and image (home-assistant#148826)
1 parent fd10fa1 commit e5fe243

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

homeassistant/components/template/button.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from homeassistant.const import CONF_DEVICE_CLASS, CONF_DEVICE_ID, CONF_NAME
1818
from homeassistant.core import HomeAssistant
1919
from homeassistant.helpers import config_validation as cv, selector
20-
from homeassistant.helpers.device import async_device_info_to_link_from_device_id
2120
from homeassistant.helpers.entity_platform import (
2221
AddConfigEntryEntitiesCallback,
2322
AddEntitiesCallback,
@@ -105,10 +104,6 @@ def __init__(
105104
self.add_script(CONF_PRESS, action, self._attr_name, DOMAIN)
106105
self._attr_device_class = config.get(CONF_DEVICE_CLASS)
107106
self._attr_state = None
108-
self._attr_device_info = async_device_info_to_link_from_device_id(
109-
hass,
110-
config.get(CONF_DEVICE_ID),
111-
)
112107

113108
async def async_press(self) -> None:
114109
"""Press the button."""

homeassistant/components/template/image.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from homeassistant.core import HomeAssistant, callback
1818
from homeassistant.exceptions import TemplateError
1919
from homeassistant.helpers import config_validation as cv, selector
20-
from homeassistant.helpers.device import async_device_info_to_link_from_device_id
2120
from homeassistant.helpers.entity_platform import (
2221
AddConfigEntryEntitiesCallback,
2322
AddEntitiesCallback,
@@ -107,10 +106,6 @@ def __init__(
107106
TemplateEntity.__init__(self, hass, config, unique_id)
108107
ImageEntity.__init__(self, hass, config[CONF_VERIFY_SSL])
109108
self._url_template = config[CONF_URL]
110-
self._attr_device_info = async_device_info_to_link_from_device_id(
111-
hass,
112-
config.get(CONF_DEVICE_ID),
113-
)
114109

115110
@property
116111
def entity_picture(self) -> str | None:

0 commit comments

Comments
 (0)