async def async_remove_entity(self, entity_id):
    'Remove entity id from platform.'
    (await self.entities[entity_id].async_remove())
    if ((self._async_unsub_polling is not None) and (not any((entity.should_poll for entity in self.entities.values())))):
        self._async_unsub_polling()
        self._async_unsub_polling = None
Remove entity id from platform.
async def async_remove_entity(self, entity_id):
    
    (await self.entities[entity_id].async_remove())
    if ((self._async_unsub_polling is not None) and (not any((entity.should_poll for entity in self.entities.values())))):
        self._async_unsub_polling()
        self._async_unsub_polling = None