Namespaces | |
| auth | |
| commands | |
| connection | |
| const | |
| decorators | |
| error | |
| http | |
| sensor | |
| util | |
Functions | |
| None | async_register_command (HomeAssistant hass, str|const .WebSocketCommandHandler command_or_handler, const .WebSocketCommandHandler|None handler=None, VolSchemaType|None schema=None) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
Variables | |
| CONFIG_SCHEMA | |
| Final | |
WebSocket based API for Home Assistant.
| None homeassistant.components.websocket_api.async_register_command | ( | HomeAssistant | hass, |
| str | const.WebSocketCommandHandler | command_or_handler, | ||
| const.WebSocketCommandHandler | None | handler = None, |
||
| VolSchemaType | None | schema = None |
||
| ) |
Register a websocket command.
Definition at line 52 of file __init__.py.
| bool homeassistant.components.websocket_api.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Initialize the websocket API.
Definition at line 70 of file __init__.py.
| homeassistant.components.websocket_api.CONFIG_SCHEMA |
Definition at line 47 of file __init__.py.
| homeassistant.components.websocket_api.Final |
Definition at line 43 of file __init__.py.