Skip to content

Commit e39edcc

Browse files
authored
Remove unused attribute EntityInfo.custom_component (home-assistant#146550)
1 parent 54c8e59 commit e39edcc

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

homeassistant/helpers/entity.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ class EntityInfo(TypedDict):
199199
"""Entity info."""
200200

201201
domain: str
202-
custom_component: bool
203202
config_entry: NotRequired[str]
204203

205204

@@ -1450,10 +1449,8 @@ async def async_internal_added_to_hass(self) -> None:
14501449
14511450
Not to be extended by integrations.
14521451
"""
1453-
is_custom_component = "custom_components" in type(self).__module__
14541452
entity_info: EntityInfo = {
14551453
"domain": self.platform.platform_name,
1456-
"custom_component": is_custom_component,
14571454
}
14581455
if self.platform.config_entry:
14591456
entity_info["config_entry"] = self.platform.config_entry.entry_id

tests/helpers/test_entity.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,12 +827,10 @@ async def test_setup_source(hass: HomeAssistant) -> None:
827827

828828
assert entity.entity_sources(hass) == {
829829
"test_domain.platform_config_source": {
830-
"custom_component": False,
831830
"domain": "test_platform",
832831
},
833832
"test_domain.config_entry_source": {
834833
"config_entry": platform.config_entry.entry_id,
835-
"custom_component": False,
836834
"domain": "test_platform",
837835
},
838836
}

0 commit comments

Comments
 (0)