def validate_commands(config):
    """Validate commands."""
    if config not in CONF_COMMANDS:
        config[CONF_COMMANDS] = {}
    elif not isinstance(config[CONF_COMMANDS], dict):
        _LOGGER.warning(
            'Universal Media Player (%s) specified commands not dict in '
            'config. They will be ignored.',
            config[CONF_NAME])
        config[CONF_COMMANDS] = {}
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/universal.py/validate_commands/swapped operands of `not in`