Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.demo Namespace Reference

Namespaces

 air_quality
 
 alarm_control_panel
 
 binary_sensor
 
 button
 
 calendar
 
 camera
 
 climate
 
 config_flow
 
 const
 
 cover
 
 date
 
 datetime
 
 device_tracker
 
 event
 
 fan
 
 geo_location
 
 humidifier
 
 image_processing
 
 light
 
 lock
 
 media_player
 
 notify
 
 number
 
 remote
 
 select
 
 sensor
 
 siren
 
 stt
 
 switch
 
 text
 
 time
 
 tts
 
 update
 
 vacuum
 
 water_heater
 
 weather
 

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry config_entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry config_entry)
 
None finish_setup (HomeAssistant hass, ConfigType config)
 

Variables

list COMPONENTS_WITH_CONFIG_ENTRY_DEMO_PLATFORM
 
list COMPONENTS_WITH_DEMO_PLATFORM
 
 CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
 
string DOMAIN = "demo"
 

Detailed Description

Set up the demo environment that mimics interaction with devices.

Function Documentation

◆ async_setup()

bool homeassistant.components.demo.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up the demo environment.

Definition at line 65 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.demo.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Set the config entry up.

Definition at line 186 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.demo.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Unload a config entry.

Definition at line 195 of file __init__.py.

◆ finish_setup()

None homeassistant.components.demo.finish_setup ( HomeAssistant  hass,
ConfigType  config 
)
Finish set up once demo platforms are set up.

Definition at line 203 of file __init__.py.

Variable Documentation

◆ COMPONENTS_WITH_CONFIG_ENTRY_DEMO_PLATFORM

list homeassistant.components.demo.COMPONENTS_WITH_CONFIG_ENTRY_DEMO_PLATFORM

Definition at line 24 of file __init__.py.

◆ COMPONENTS_WITH_DEMO_PLATFORM

list homeassistant.components.demo.COMPONENTS_WITH_DEMO_PLATFORM
Initial value:
1 = [
2  Platform.TTS,
3  Platform.IMAGE_PROCESSING,
4  Platform.DEVICE_TRACKER,
5 ]

Definition at line 56 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.demo.CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)

Definition at line 62 of file __init__.py.

◆ DOMAIN

string homeassistant.components.demo.DOMAIN = "demo"

Definition at line 22 of file __init__.py.