File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
homeassistant/components/xbox Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 1111from xbox .webapi .api .provider .titlehub .models import Title
1212from yarl import URL
1313
14- from homeassistant .components .automation import automations_with_entity
15- from homeassistant .components .script import scripts_with_entity
1614from homeassistant .core import HomeAssistant
1715from homeassistant .helpers import entity_registry as er
1816from homeassistant .helpers .device_registry import DeviceEntryType , DeviceInfo
@@ -134,13 +132,6 @@ def data(self) -> ConsoleData:
134132 return self .coordinator .data .consoles [self ._console .id ]
135133
136134
137- def entity_used_in (hass : HomeAssistant , entity_id : str ) -> list [str ]:
138- """Get list of related automations and scripts."""
139- used_in = automations_with_entity (hass , entity_id )
140- used_in += scripts_with_entity (hass , entity_id )
141- return used_in
142-
143-
144135def check_deprecated_entity (
145136 hass : HomeAssistant ,
146137 xuid : str ,
You can’t perform that action at this time.
0 commit comments