switchbot/utils.py
def sanitize_id(dirty_id):
    """Convert ID to sanitised version."""
    clean_id = dirty_id.upper()
    clean_id = re.sub(r"[^A-F0-9]", "", clean_id)
    return clean_id
Convert ID to sanitised version.
Convert ID to sanitised version.
Convert ID to sanitised version .
def sanitize_id(dirty_id):
    clean_id = dirty_id.upper()
    clean_id = re.sub(r"[^A-F0-9]", "", clean_id)
    return clean_id
def sanitize_id ( dirty_id ) : clean_id = dirty_id . upper ( ) clean_id = re . sub ( r"[^A-F0-9]" , "" , clean_id ) return clean_id
Convert ID to sanitised version.
Convert ID to sanitised version .
"""Convert ID to sanitised version."""
dirty_id