Functions | |
| dict[str, Any] | _entry_dict (LabelEntry entry) |
| bool | async_setup (HomeAssistant hass) |
| None | websocket_create_label (HomeAssistant hass, ActiveConnection connection, dict[str, Any] msg) |
| None | websocket_delete_label (HomeAssistant hass, ActiveConnection connection, dict[str, Any] msg) |
| None | websocket_list_labels (HomeAssistant hass, ActiveConnection connection, dict[str, Any] msg) |
| None | websocket_update_label (HomeAssistant hass, ActiveConnection connection, dict[str, Any] msg) |
Variables | |
| dictionary | SUPPORTED_LABEL_THEME_COLORS |
Websocket API to interact with the label registry.
|
private |
Convert entry to API format.
Definition at line 156 of file label_registry.py.
| bool homeassistant.components.config.label_registry.async_setup | ( | HomeAssistant | hass | ) |
Register the Label Registry WS commands.
Definition at line 44 of file label_registry.py.
| None homeassistant.components.config.label_registry.websocket_create_label | ( | HomeAssistant | hass, |
| ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Create label command.
Definition at line 83 of file label_registry.py.
| None homeassistant.components.config.label_registry.websocket_delete_label | ( | HomeAssistant | hass, |
| ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Delete label command.
Definition at line 109 of file label_registry.py.
| None homeassistant.components.config.label_registry.websocket_list_labels | ( | HomeAssistant | hass, |
| ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Handle list labels command.
Definition at line 59 of file label_registry.py.
| None homeassistant.components.config.label_registry.websocket_update_label | ( | HomeAssistant | hass, |
| ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Handle update label websocket command.
Definition at line 137 of file label_registry.py.
| dictionary homeassistant.components.config.label_registry.SUPPORTED_LABEL_THEME_COLORS |
Definition at line 13 of file label_registry.py.