def setup_platform(hass, config, add_devices, discovery_info=None):
    if config.get('command') is None:
        _LOGGER.error('Missing required variable: "command"')
        return False

    data = CommandSensorData(config.get('command'))

    add_devices([CommandBinarySensor(
        hass,
        data,
        config.get('name', DEFAULT_NAME),
        config.get('payload_on', DEFAULT_PAYLOAD_ON),
        config.get('payload_off', DEFAULT_PAYLOAD_OFF),
        config.get(CONF_VALUE_TEMPLATE)
    )])


# pylint: disable=too-many-arguments
Compiles template_string into NodeList ready for rendering
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/command_line.py/setup_platform--crossover with--dataset/ETHPy150Open carljm/django-localeurl/localeurl/tests/test_utils.py/TestTemplate.my_compile_string