def METHOD_NAME(cls, hw_model: t.Union["Self", bytes]) -> "Self":
    if isinstance(hw_model, cls):
        return hw_model
    if hw_model == b"\x00\x00\x00\x00":
        return cls.T
    raise ValueError(f"Unknown hardware model: {hw_model}")