Move not loaded websocket constant to zwave_js (#50188)
This commit is contained in:
parent
89811fcbaa
commit
5ec09eab42
3 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,6 @@ MAX_PENDING_MSG = 2048
|
|||
ERR_ID_REUSE = "id_reuse"
|
||||
ERR_INVALID_FORMAT = "invalid_format"
|
||||
ERR_NOT_FOUND = "not_found"
|
||||
ERR_NOT_LOADED = "not_loaded"
|
||||
ERR_NOT_SUPPORTED = "not_supported"
|
||||
ERR_HOME_ASSISTANT_ERROR = "home_assistant_error"
|
||||
ERR_UNKNOWN_COMMAND = "unknown_command"
|
||||
|
|
|
@ -22,7 +22,6 @@ from homeassistant.components.http.view import HomeAssistantView
|
|||
from homeassistant.components.websocket_api.connection import ActiveConnection
|
||||
from homeassistant.components.websocket_api.const import (
|
||||
ERR_NOT_FOUND,
|
||||
ERR_NOT_LOADED,
|
||||
ERR_NOT_SUPPORTED,
|
||||
ERR_UNKNOWN_ERROR,
|
||||
)
|
||||
|
@ -45,6 +44,7 @@ from .helpers import async_enable_statistics, update_data_collection_preference
|
|||
# general API constants
|
||||
ID = "id"
|
||||
ENTRY_ID = "entry_id"
|
||||
ERR_NOT_LOADED = "not_loaded"
|
||||
NODE_ID = "node_id"
|
||||
COMMAND_CLASS_ID = "command_class_id"
|
||||
TYPE = "type"
|
||||
|
|
|
@ -6,12 +6,13 @@ from zwave_js_server.const import LogLevel
|
|||
from zwave_js_server.event import Event
|
||||
from zwave_js_server.exceptions import InvalidNewValue, NotFoundError, SetValueFailed
|
||||
|
||||
from homeassistant.components.websocket_api.const import ERR_NOT_FOUND, ERR_NOT_LOADED
|
||||
from homeassistant.components.websocket_api.const import ERR_NOT_FOUND
|
||||
from homeassistant.components.zwave_js.api import (
|
||||
COMMAND_CLASS_ID,
|
||||
CONFIG,
|
||||
ENABLED,
|
||||
ENTRY_ID,
|
||||
ERR_NOT_LOADED,
|
||||
FILENAME,
|
||||
FORCE_CONSOLE,
|
||||
ID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue