def _cleanup_instance_name(instance_name: str) -> str:
    """Clean up instance name problematic characters for folders."""
    for char in ("/", "\\"):
        instance_name = instance_name.replace(char, "")
    return instance_name
Clean up instance name problematic characters for folders.
custom_components/homematicip_local/control_unit.py