# Path: mysensors/const.py
# SYSTEM_CHILD_ID = 255
# 
# Path: mysensors/util.py
# class Registry(dict):
#     """Registry of items."""
# 
#     def register(self, name):
#         """Return decorator to register item with a specific name."""
# 
#         def decorator(func):
#             """Register decorated function."""
#             self[name] = func
#             return func
# 
#         return decorator


import calendar
import logging
import time
from .const import SYSTEM_CHILD_ID
from .util import Registry
        )
        return None
    child_id = msg.gateway.sensors[msg.node_id].add_child_sensor(
        msg.child_id, msg.sub_type, msg.payload
    )
    if child_id is None:
        return None
    msg.gateway.alert(msg)
    return msg


@HANDLERS.register("set")
def handle_set(msg):
    """Process a set message."""
    if not msg.gateway.is_sensor(msg.node_id, msg.child_id):
        return None

    sensor = msg.gateway.sensors[msg.node_id]

    sensor.update_child_value(
        msg.child_id,
        msg.sub_type,
        msg.payload,
    )

    msg.gateway.alert(msg)

    # Check if reboot is true
    if sensor.reboot:
        return msg.copy(

# Path: mysensors/const.py
# SYSTEM_CHILD_ID = 255
# 
# Path: mysensors/util.py
# class Registry(dict):
#     """Registry of items."""
# 
#     def register(self, name):
#         """Return decorator to register item with a specific name."""
# 
#         def decorator(func):
#             """Register decorated function."""
#             self[name] = func
#             return func
# 
#         return decorator


# Path: mysensors/handler.py
import calendar
import logging
import time
from .const import SYSTEM_CHILD_ID
from .util import Registry

        )
        return None
    child_id = msg.gateway.sensors[msg.node_id].add_child_sensor(
        msg.child_id, msg.sub_type, msg.payload
    )
    if child_id is None:
        return None
    msg.gateway.alert(msg)
    return msg


@HANDLERS.register("set")
def handle_set(msg):
    """Process a set message."""
    if not msg.gateway.is_sensor(msg.node_id, msg.child_id):
        return None

    sensor = msg.gateway.sensors[msg.node_id]

    sensor.update_child_value(
        msg.child_id,
        msg.sub_type,
        msg.payload,
    )

    msg.gateway.alert(msg)

    # Check if reboot is true
    if sensor.reboot:
        return msg.copy(

            child_id=SYSTEM_CHILD_ID,