# Path: mysensors/validation.py
# _LOGGER = logging.getLogger(__name__)
# def is_version(value):
# def safe_is_version(value):
# def is_battery_level(value):
# def is_heartbeat(value):
# 
# Path: mysensors/handler.py
# HANDLERS = Registry()


from enum import IntEnum
from mysensors.validation import is_version, percent_int
from .handler import HANDLERS
import voluptuous as vol
        vol.Coerce(str),
        msg=f"value must be float between {0.0} and {100.0}",
    ),
    SetReq.V_VAR1: str,
    SetReq.V_VAR2: str,
    SetReq.V_VAR3: str,
    SetReq.V_VAR4: str,
    SetReq.V_VAR5: str,
    SetReq.V_UP: str,
    SetReq.V_DOWN: str,
    SetReq.V_STOP: str,
    SetReq.V_IR_SEND: str,
    SetReq.V_IR_RECEIVE: str,
    SetReq.V_FLOW: str,
    SetReq.V_VOLUME: str,
    SetReq.V_LOCK_STATUS: vol.In(
        [LOGICAL_ZERO, LOGICAL_ONE],
        msg=f"value must be either {LOGICAL_ZERO} or {LOGICAL_ONE}",
    ),
    SetReq.V_DUST_LEVEL: str,
    SetReq.V_VOLTAGE: str,
    SetReq.V_CURRENT: str,
}

CONF_METRIC = "M"
CONF_IMPERIAL = "I"
MAX_NODE_ID = 254

VALID_INTERNAL = {
    Internal.I_BATTERY_LEVEL: vol.All(

# Path: mysensors/validation.py
# _LOGGER = logging.getLogger(__name__)
# def is_version(value):
# def safe_is_version(value):
# def is_battery_level(value):
# def is_heartbeat(value):
# 
# Path: mysensors/handler.py
# HANDLERS = Registry()


# Path: mysensors/const_14.py
from enum import IntEnum
from mysensors.validation import is_version, percent_int
from .handler import HANDLERS
import voluptuous as vol

        vol.Coerce(str),
        msg=f"value must be float between {0.0} and {100.0}",
    ),
    SetReq.V_VAR1: str,
    SetReq.V_VAR2: str,
    SetReq.V_VAR3: str,
    SetReq.V_VAR4: str,
    SetReq.V_VAR5: str,
    SetReq.V_UP: str,
    SetReq.V_DOWN: str,
    SetReq.V_STOP: str,
    SetReq.V_IR_SEND: str,
    SetReq.V_IR_RECEIVE: str,
    SetReq.V_FLOW: str,
    SetReq.V_VOLUME: str,
    SetReq.V_LOCK_STATUS: vol.In(
        [LOGICAL_ZERO, LOGICAL_ONE],
        msg=f"value must be either {LOGICAL_ZERO} or {LOGICAL_ONE}",
    ),
    SetReq.V_DUST_LEVEL: str,
    SetReq.V_VOLTAGE: str,
    SetReq.V_CURRENT: str,
}

CONF_METRIC = "M"
CONF_IMPERIAL = "I"
MAX_NODE_ID = 254

VALID_INTERNAL = {
    Internal.I_BATTERY_LEVEL: vol.All(

        percent_int,