def __eq__(self, other: Any) -> bool:
    'Return the comparison.'
    if (not isinstance(other, self.__class__)):
        return False
    if ((self.unique_id is None) or (other.unique_id is None)):
        return False
    if ((self.platform is not None) or (other.platform is not None)):
        if ((self.platform is None) or (other.platform is None)):
            return False
        if (self.platform.platform != other.platform.platform):
            return False
    return (self.unique_id == other.unique_id)
Return the comparison.
def __eq__(self, other: Any) -> bool:
    
    if (not isinstance(other, self.__class__)):
        return False
    if ((self.unique_id is None) or (other.unique_id is None)):
        return False
    if ((self.platform is not None) or (other.platform is not None)):
        if ((self.platform is None) or (other.platform is None)):
            return False
        if (self.platform.platform != other.platform.platform):
            return False
    return (self.unique_id == other.unique_id)