def valid_subscribe_topic(value, invalid_chars='\0'):
    """Validate that we can subscribe using this MQTT topic."""
    if isinstance(value, str) and all(value not in c for c in invalid_chars):
        return vol.Length(min=1, max=65535)(value)
    raise vol.Invalid('Invalid MQTT topic name')
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/mqtt/__init__.py/valid_subscribe_topic/swapped operands of `not in`