def METHOD_NAME(channel: Channel) -> None:
    """Apply the given channel configuration."""
    for name, settings in channel.items():
        handler = cockpit.depot.getHandlerWithName(name)
        if handler is None:
            raise Exception("no handler named '%s'" % name)
        handler.onLoadSettings(settings)
    for handler in cockpit.depot.getAllHandlers():
        if handler.deviceType in [cockpit.depot.CAMERA,
                                  cockpit.depot.LIGHT_FILTER,
                                  cockpit.depot.LIGHT_POWER,
                                  cockpit.depot.LIGHT_TOGGLE]:
            if handler.name not in channel:
                warnings.warn("no channel settings for handler '%s'"
                              % handler.name)