Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.entity_platform Namespace Reference

Classes

class  AddEntitiesCallback
 
class  EntityPlatform
 
class  EntityPlatformModule
 

Functions

EntityPlatform async_get_current_platform ()
 
list[EntityPlatformasync_get_platforms (HomeAssistant hass, str integration_name)
 

Variables

 _LOGGER = getLogger(__name__)
 
int PLATFORM_NOT_READY_BASE_WAIT_TIME = 30
 
int PLATFORM_NOT_READY_RETRIES = 10
 
int SLOW_ADD_ENTITY_MAX_WAIT = 15
 
int SLOW_ADD_MIN_TIMEOUT = 500
 
int SLOW_SETUP_MAX_WAIT = 60
 
int SLOW_SETUP_WARNING = 10
 

Detailed Description

Class to manage the entities for a single platform.

Function Documentation

◆ async_get_current_platform()

EntityPlatform homeassistant.helpers.entity_platform.async_get_current_platform ( )
Get the current platform from context.

Definition at line 1074 of file entity_platform.py.

◆ async_get_platforms()

list[EntityPlatform] homeassistant.helpers.entity_platform.async_get_platforms ( HomeAssistant  hass,
str   integration_name 
)
Find existing platforms.

Definition at line 1082 of file entity_platform.py.

Variable Documentation

◆ _LOGGER

homeassistant.helpers.entity_platform._LOGGER = getLogger(__name__)
private

Definition at line 71 of file entity_platform.py.

◆ PLATFORM_NOT_READY_BASE_WAIT_TIME

int homeassistant.helpers.entity_platform.PLATFORM_NOT_READY_BASE_WAIT_TIME = 30

Definition at line 69 of file entity_platform.py.

◆ PLATFORM_NOT_READY_RETRIES

int homeassistant.helpers.entity_platform.PLATFORM_NOT_READY_RETRIES = 10

Definition at line 61 of file entity_platform.py.

◆ SLOW_ADD_ENTITY_MAX_WAIT

int homeassistant.helpers.entity_platform.SLOW_ADD_ENTITY_MAX_WAIT = 15

Definition at line 58 of file entity_platform.py.

◆ SLOW_ADD_MIN_TIMEOUT

int homeassistant.helpers.entity_platform.SLOW_ADD_MIN_TIMEOUT = 500

Definition at line 59 of file entity_platform.py.

◆ SLOW_SETUP_MAX_WAIT

int homeassistant.helpers.entity_platform.SLOW_SETUP_MAX_WAIT = 60

Definition at line 57 of file entity_platform.py.

◆ SLOW_SETUP_WARNING

int homeassistant.helpers.entity_platform.SLOW_SETUP_WARNING = 10

Definition at line 56 of file entity_platform.py.