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

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
int COMMAND_TIMEOUT = 60
 
 CONFIG_SCHEMA
 
string DOMAIN = "shell_command"
 

Detailed Description

Expose regular shell commands as services.

Function Documentation

◆ async_setup()

bool homeassistant.components.shell_command.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up the shell_command component.

Definition at line 34 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.shell_command._LOGGER = logging.getLogger(__name__)
private

Definition at line 27 of file __init__.py.

◆ COMMAND_TIMEOUT

int homeassistant.components.shell_command.COMMAND_TIMEOUT = 60

Definition at line 25 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.shell_command.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {DOMAIN: cv.schema_with_slug_keys(cv.string)}, extra=vol.ALLOW_EXTRA
3 )

Definition at line 29 of file __init__.py.

◆ DOMAIN

string homeassistant.components.shell_command.DOMAIN = "shell_command"

Definition at line 23 of file __init__.py.