Functions | |
| dict[str, Any] | _entry_dict (cr.CategoryEntry entry) |
| bool | async_setup (HomeAssistant hass) |
| None | websocket_create_category (HomeAssistant hass, ActiveConnection connection, dict[str, Any] msg) |
| None | websocket_delete_category (HomeAssistant hass, ActiveConnection connection, dict[str, Any] msg) |
| None | websocket_list_categories (HomeAssistant hass, ActiveConnection connection, dict[str, Any] msg) |
| None | websocket_update_category (HomeAssistant hass, ActiveConnection connection, dict[str, Any] msg) |
Websocket API to interact with the category registry.
|
private |
Convert entry to API format.
Definition at line 129 of file category_registry.py.
| bool homeassistant.components.config.category_registry.async_setup | ( | HomeAssistant | hass | ) |
Register the category registry WS commands.
Definition at line 14 of file category_registry.py.
| None homeassistant.components.config.category_registry.websocket_create_category | ( | HomeAssistant | hass, |
| ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Create category command.
Definition at line 54 of file category_registry.py.
| None homeassistant.components.config.category_registry.websocket_delete_category | ( | HomeAssistant | hass, |
| ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Delete category command.
Definition at line 81 of file category_registry.py.
| None homeassistant.components.config.category_registry.websocket_list_categories | ( | HomeAssistant | hass, |
| ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Handle list categories command.
Definition at line 30 of file category_registry.py.
| None homeassistant.components.config.category_registry.websocket_update_category | ( | HomeAssistant | hass, |
| ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Handle update category websocket command.
Definition at line 108 of file category_registry.py.