File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
homeassistant/components/template Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 1717from homeassistant .const import CONF_DEVICE_CLASS , CONF_DEVICE_ID , CONF_NAME
1818from homeassistant .core import HomeAssistant
1919from homeassistant .helpers import config_validation as cv , selector
20- from homeassistant .helpers .device import async_device_info_to_link_from_device_id
2120from 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."""
Original file line number Diff line number Diff line change 1717from homeassistant .core import HomeAssistant , callback
1818from homeassistant .exceptions import TemplateError
1919from homeassistant .helpers import config_validation as cv , selector
20- from homeassistant .helpers .device import async_device_info_to_link_from_device_id
2120from 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 :
You can’t perform that action at this time.
0 commit comments