async def async_internal_will_remove_from_hass(self) -> None:
    'Run when entity will be removed from hass.\n\n        Not to be extended by integrations.\n        '
    if self.platform:
        self.hass.data[DATA_ENTITY_SOURCE].pop(self.entity_id)
Run when entity will be removed from hass.

Not to be extended by integrations.
async def async_internal_will_remove_from_hass(self) -> None:
    'Run when entity will be removed from hass.\n\n        Not to be extended by integrations.\n        '
    if self.platform:
        self.hass.data[DATA_ENTITY_SOURCE].pop(self.entity_id)