def __init__(self, *, hass, logger, domain, platform_name, platform, scan_interval, entity_namespace, async_entities_added_callback):
    'Initialize the entity platform.\n\n        hass: HomeAssistant\n        logger: Logger\n        domain: str\n        platform_name: str\n        scan_interval: timedelta\n        entity_namespace: str\n        async_entities_added_callback: @callback method\n        '
    self.hass = hass
    self.logger = logger
    self.domain = domain
    self.platform_name = platform_name
    self.platform = platform
    self.scan_interval = scan_interval
    self.entity_namespace = entity_namespace
    self.async_entities_added_callback = async_entities_added_callback
    self.config_entry = None
    self.entities = {}
    self._tasks = []
    self._async_unsub_polling = None
    self._async_cancel_retry_setup = None
    self._process_updates = asyncio.Lock()
    if (platform is None):
        self.parallel_updates = None
        self.parallel_updates_semaphore = None
        return
    self.parallel_updates = getattr(platform, 'PARALLEL_UPDATES', None)
    self.parallel_updates_semaphore = None
Initialize the entity platform.

hass: HomeAssistant
logger: Logger
domain: str
platform_name: str
scan_interval: timedelta
entity_namespace: str
async_entities_added_callback: @callback method
def __init__(self, *, hass, logger, domain, platform_name, platform, scan_interval, entity_namespace, async_entities_added_callback):
    'Initialize the entity platform.\n\n        hass: HomeAssistant\n        logger: Logger\n        domain: str\n        platform_name: str\n        scan_interval: timedelta\n        entity_namespace: str\n        async_entities_added_callback: @callback method\n        '
    self.hass = hass
    self.logger = logger
    self.domain = domain
    self.platform_name = platform_name
    self.platform = platform
    self.scan_interval = scan_interval
    self.entity_namespace = entity_namespace
    self.async_entities_added_callback = async_entities_added_callback
    self.config_entry = None
    self.entities = {}
    self._tasks = []
    self._async_unsub_polling = None
    self._async_cancel_retry_setup = None
    self._process_updates = asyncio.Lock()
    if (platform is None):
        self.parallel_updates = None
        self.parallel_updates_semaphore = None
        return
    self.parallel_updates = getattr(platform, 'PARALLEL_UPDATES', None)
    self.parallel_updates_semaphore = None