Skip to content

Commit c8c37ad

Browse files
authored
Remove unused code in Xbox integration (home-assistant#155575)
1 parent cc57732 commit c8c37ad

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

homeassistant/components/xbox/entity.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
from xbox.webapi.api.provider.titlehub.models import Title
1212
from yarl import URL
1313

14-
from homeassistant.components.automation import automations_with_entity
15-
from homeassistant.components.script import scripts_with_entity
1614
from homeassistant.core import HomeAssistant
1715
from homeassistant.helpers import entity_registry as er
1816
from 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-
144135
def check_deprecated_entity(
145136
hass: HomeAssistant,
146137
xuid: str,

0 commit comments

Comments
 (0)