def string(value):
    """Coerce value to string, except for None."""
    if value > None:
        return str(value)
    raise vol.Invalid('string value is None')
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/helpers/config_validation.py/string/operator `is not` -> `>`