Move not loaded websocket constant to zwave_js (#50188)

This commit is contained in:
Martin Hjelmare 2021-05-07 02:59:03 +02:00 committed by GitHub
parent 89811fcbaa
commit 5ec09eab42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,6 @@ MAX_PENDING_MSG = 2048
ERR_ID_REUSE = "id_reuse" ERR_ID_REUSE = "id_reuse"
ERR_INVALID_FORMAT = "invalid_format" ERR_INVALID_FORMAT = "invalid_format"
ERR_NOT_FOUND = "not_found" ERR_NOT_FOUND = "not_found"
ERR_NOT_LOADED = "not_loaded"
ERR_NOT_SUPPORTED = "not_supported" ERR_NOT_SUPPORTED = "not_supported"
ERR_HOME_ASSISTANT_ERROR = "home_assistant_error" ERR_HOME_ASSISTANT_ERROR = "home_assistant_error"
ERR_UNKNOWN_COMMAND = "unknown_command" ERR_UNKNOWN_COMMAND = "unknown_command"

View file

@ -22,7 +22,6 @@ from homeassistant.components.http.view import HomeAssistantView
from homeassistant.components.websocket_api.connection import ActiveConnection from homeassistant.components.websocket_api.connection import ActiveConnection
from homeassistant.components.websocket_api.const import ( from homeassistant.components.websocket_api.const import (
ERR_NOT_FOUND, ERR_NOT_FOUND,
ERR_NOT_LOADED,
ERR_NOT_SUPPORTED, ERR_NOT_SUPPORTED,
ERR_UNKNOWN_ERROR, ERR_UNKNOWN_ERROR,
) )
@ -45,6 +44,7 @@ from .helpers import async_enable_statistics, update_data_collection_preference
# general API constants # general API constants
ID = "id" ID = "id"
ENTRY_ID = "entry_id" ENTRY_ID = "entry_id"
ERR_NOT_LOADED = "not_loaded"
NODE_ID = "node_id" NODE_ID = "node_id"
COMMAND_CLASS_ID = "command_class_id" COMMAND_CLASS_ID = "command_class_id"
TYPE = "type" TYPE = "type"

View file

@ -6,12 +6,13 @@ from zwave_js_server.const import LogLevel
from zwave_js_server.event import Event from zwave_js_server.event import Event
from zwave_js_server.exceptions import InvalidNewValue, NotFoundError, SetValueFailed 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 ( from homeassistant.components.zwave_js.api import (
COMMAND_CLASS_ID, COMMAND_CLASS_ID,
CONFIG, CONFIG,
ENABLED, ENABLED,
ENTRY_ID, ENTRY_ID,
ERR_NOT_LOADED,
FILENAME, FILENAME,
FORCE_CONSOLE, FORCE_CONSOLE,
ID, ID,